diff options
author | Kris Moore <kris@pcbsd.org> | 2016-02-08 09:52:06 -0500 |
---|---|---|
committer | Kris Moore <kris@pcbsd.org> | 2016-02-08 09:52:06 -0500 |
commit | 62f80f8bf10815fa381168213c86e2ab6490075e (patch) | |
tree | 86fe2f1361e8349853f8822f9507c0d8f990ef7b | |
parent | Disable DEBUG (diff) | |
download | lumina-62f80f8bf10815fa381168213c86e2ab6490075e.tar.gz lumina-62f80f8bf10815fa381168213c86e2ab6490075e.tar.bz2 lumina-62f80f8bf10815fa381168213c86e2ab6490075e.zip |
Run the updateDesktops() immediately instead of on delay
-rw-r--r-- | lumina-desktop/LSession.cpp | 12 |
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; |