aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-qt5/core/lumina-desktop/LDesktopBackground.cpp2
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktopBackground.cpp b/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
index 97249384..c3d67117 100644
--- a/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
@@ -67,7 +67,7 @@ void LDesktopBackground::setBackground(const QString& bgFile, const QString& for
painter.setBrushOrigin(dx, dy);
painter.drawRect(dx, dy, drawWidth, drawHeight);
}
- update();
+ this->repaint(this->geometry()); //make sure the entire thing gets repainted right away
show();
}
diff --git a/src-qt5/core/lumina-desktop/LPanel.cpp b/src-qt5/core/lumina-desktop/LPanel.cpp
index 6e07f624..1308d61f 100644
--- a/src-qt5/core/lumina-desktop/LPanel.cpp
+++ b/src-qt5/core/lumina-desktop/LPanel.cpp
@@ -326,9 +326,9 @@ void LPanel::paintEvent(QPaintEvent *event){
//Make sure the base background of the event rectangle is the associated rectangle from the BGWindow
QRect rec = event->rect();//this->geometry(); //start with the global geometry of the panel
//Need to translate that rectangle to the background image coordinates
- qDebug() << " - Rec:" << rec << hidden << this->geometry() << bgWindow->geometry();
+ //qDebug() << " - Rec:" << rec << hidden << this->geometry() << bgWindow->geometry();
rec.moveTo( bgWindow->mapFromGlobal( this->mapToGlobal(rec.topLeft()) ) ); //(rec.x()-LSession::handle()->screenGeom(screennum).x(), rec.y()-LSession::handle()->screenGeom(screennum).y() );
- qDebug() << " - Adjusted Window Rec:" << rec;
+ //qDebug() << " - Adjusted Window Rec:" << rec;
painter->drawPixmap(event->rect(), bgWindow->grab(rec) );
}
QWidget::paintEvent(event); //now pass the event along to the normal painting event
bgstack15