aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-10-17 11:09:05 -0400
committerKen Moore <ken@ixsystems.com>2016-10-17 11:09:05 -0400
commitc7967eb9b1a25767ec29290bebb782a70a45251a (patch)
treec97d2ea356c5bd2296986c8bf8d1662f5f65f594 /src-qt5/core/lumina-desktop/LDesktopBackground.cpp
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-c7967eb9b1a25767ec29290bebb782a70a45251a.tar.gz
lumina-c7967eb9b1a25767ec29290bebb782a70a45251a.tar.bz2
lumina-c7967eb9b1a25767ec29290bebb782a70a45251a.zip
Some more painting cleanup for the wallpaper/panels.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LDesktopBackground.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktopBackground.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktopBackground.cpp b/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
index c3d67117..ed12bcf0 100644
--- a/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktopBackground.cpp
@@ -8,13 +8,17 @@
#include <QPainter>
#include <QPaintEvent>
+#include <QDebug>
void LDesktopBackground::paintEvent(QPaintEvent *ev) {
if (bgPixmap != NULL) {
+ //qDebug() << "Wallpaper paint Event:" << ev->rect();
QPainter painter(this);
painter.setBrush(*bgPixmap);
- painter.drawRect(ev->rect());
- }
+ painter.drawRect(ev->rect().adjusted(-1,-1,2,2));
+ }else{
+ QWidget::paintEvent(ev);
+ }
}
void LDesktopBackground::setBackground(const QString& bgFile, const QString& format) {
@@ -67,7 +71,7 @@ void LDesktopBackground::setBackground(const QString& bgFile, const QString& for
painter.setBrushOrigin(dx, dy);
painter.drawRect(dx, dy, drawWidth, drawHeight);
}
- this->repaint(this->geometry()); //make sure the entire thing gets repainted right away
+ this->repaint(); //make sure the entire thing gets repainted right away
show();
}
bgstack15