aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-03 09:12:54 -0500
committerKen Moore <ken@pcbsd.org>2015-03-03 09:12:54 -0500
commita8851dd559f8068e42abbac5891c1e83245fe2df (patch)
treee7dc283cbbef19ecb6175909ea2bf1ac69ff9cda
parentFix an issue with how the panel configuration was adjusting the "other" panel... (diff)
downloadlumina-a8851dd559f8068e42abbac5891c1e83245fe2df.tar.gz
lumina-a8851dd559f8068e42abbac5891c1e83245fe2df.tar.bz2
lumina-a8851dd559f8068e42abbac5891c1e83245fe2df.zip
Make sure that Fluxbox get prompted to reload configs as well after the Lumina session detects screen modifications/changes.
-rw-r--r--lumina-desktop/LSession.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 811c60da..aac550c1 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -315,21 +315,24 @@ void LSession::updateDesktops(){
}
}
//qDebug() << " - Done Starting Desktops";
- //Make sure all the background windows are registered on the system as virtual roots
- QTimer::singleShot(200,this, SLOT(registerDesktopWindows()));
- if(firstrun){ return; } //Done right here on first run
+
+ if(!firstrun){//Done right here on first run
//Now go through and make sure to delete any desktops for detached screens
- for(int i=0; i<DESKTOPS.length(); i++){
- if(DESKTOPS[i]->Screen() >= DW->screenCount()){
- qDebug() << " - Close desktop on screen:" << DESKTOPS[i]->Screen();
- DESKTOPS[i]->prepareToClose(); //hide();
- delete DESKTOPS.takeAt(i);
- i--;
- }else{
- qDebug() << " - Show desktop on screen:" << DESKTOPS[i]->Screen();
- DESKTOPS[i]->show();
+ for(int i=0; i<DESKTOPS.length(); i++){
+ if(DESKTOPS[i]->Screen() >= DW->screenCount()){
+ qDebug() << " - Close desktop on screen:" << DESKTOPS[i]->Screen();
+ DESKTOPS[i]->prepareToClose(); //hide();
+ delete DESKTOPS.takeAt(i);
+ i--;
+ }else{
+ qDebug() << " - Show desktop on screen:" << DESKTOPS[i]->Screen();
+ DESKTOPS[i]->show();
+ }
}
+ WM->updateWM(); //Make sure fluxbox also gets prompted to re-load screen config
}
+ //Make sure all the background windows are registered on the system as virtual roots
+ QTimer::singleShot(100,this, SLOT(registerDesktopWindows()));
//qDebug() << " - Done Checking Desktops";
}
bgstack15