From 62f80f8bf10815fa381168213c86e2ab6490075e Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Mon, 8 Feb 2016 09:52:06 -0500 Subject: Run the updateDesktops() immediately instead of on delay --- lumina-desktop/LSession.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lumina-desktop') 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