aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/LSession.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index c5eaae33..afb0e125 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -347,9 +347,9 @@ void LSession::watcherChange(QString changed){
void LSession::screensChanged(){
qDebug() << "Screen Number Changed";
- if(screenTimer->isActive()){ screenTimer->stop(); }
- screenTimer->start();
- //updateDesktops();
+//if(screenTimer->isActive()){ screenTimer->stop(); }
+//screenTimer->start();
+ updateDesktops();
}
void LSession::screenResized(int scrn){
@@ -492,6 +492,12 @@ void LSession::updateDesktops(){
bool firstrun = (DESKTOPS.length()==0);
bool numchange = DESKTOPS.length()!=sC;
+ // If the screen count is changing on us
+ if ( sC != DW->screenCount() ) {
+ qDebug() << "Screen Count changed while running";
+ return;
+ }
+
//qDebug() << " -- Desktop Flags:" << firstrun << numchange << DW->isVirtualDesktop();
for(int i=0; i<sC; i++){
bool found = false;
bgstack15