aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootWindow.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-17 16:11:36 +0000
committerWeblate <noreply@weblate.org>2017-08-17 16:11:36 +0000
commit35915a6a5a72ea5c45af7a787dcad69fee31218b (patch)
tree250dc618a5f8e12f041a1a2166269e3c8c3c4bfa /src-qt5/core/libLumina/RootWindow.cpp
parentTranslated using Weblate (French) (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-35915a6a5a72ea5c45af7a787dcad69fee31218b.tar.gz
lumina-35915a6a5a72ea5c45af7a787dcad69fee31218b.tar.bz2
lumina-35915a6a5a72ea5c45af7a787dcad69fee31218b.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/libLumina/RootWindow.cpp')
-rw-r--r--src-qt5/core/libLumina/RootWindow.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/RootWindow.cpp b/src-qt5/core/libLumina/RootWindow.cpp
index 596755df..48c37c86 100644
--- a/src-qt5/core/libLumina/RootWindow.cpp
+++ b/src-qt5/core/libLumina/RootWindow.cpp
@@ -100,6 +100,14 @@ void RootWindow::updateScreenPixmap(screeninfo *info){
info->wallpaper = pix;
}
+RootSubWindow* RootWindow::windowForId(WId id){
+ RootSubWindow *tmp = 0;
+ for(int i=0; i<WINDOWS.length() && tmp==0; i++){
+ if(WINDOWS[i]->id() == id){ tmp = WINDOWS[i]; }
+ }
+ return tmp;
+}
+
// === PUBLIC SLOTS ===
void RootWindow::ResizeRoot(){
if(DEBUG){ qDebug() << "Resize Root..."; }
@@ -202,6 +210,7 @@ void RootWindow::CloseWindow(WId win){
// === PROTECTED ===
void RootWindow::paintEvent(QPaintEvent *ev){
//qDebug() << "RootWindow: PaintEvent:" << ev->rect(); //<< QDateTime::currentDateTime()->toString(QDateTime::ShortDate);
+ QWidget::paintEvent(ev);
bool found = false;
QPainter painter(this);
QRect geom = ev->rect();
@@ -214,7 +223,7 @@ void RootWindow::paintEvent(QPaintEvent *ev){
}
}
painter.end();
- if(!found){
+ /*if(!found){
QWidget::paintEvent(ev);
- }
+ }*/
}
bgstack15