aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop/LPanel.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LPanel.cpp b/src-qt5/core/lumina-desktop/LPanel.cpp
index 1308d61f..67cba7f4 100644
--- a/src-qt5/core/lumina-desktop/LPanel.cpp
+++ b/src-qt5/core/lumina-desktop/LPanel.cpp
@@ -325,11 +325,12 @@ void LPanel::paintEvent(QPaintEvent *event){
//qDebug() << "Paint Panel:" << PPREFIX;
//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
+ rec.adjust(-1,-1,2,2); //add 1 more pixel on each side
//Need to translate that rectangle to the background image coordinates
//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;
- painter->drawPixmap(event->rect(), bgWindow->grab(rec) );
+ painter->drawPixmap(event->rect().adjusted(-1,-1,2,2), bgWindow->grab(rec) );
}
QWidget::paintEvent(event); //now pass the event along to the normal painting event
}
bgstack15