diff options
Diffstat (limited to 'src-qt5/core/lumina-desktop/LSession.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/LSession.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index 777affd1..a5785963 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -49,6 +49,7 @@ LSession::LSession(int &argc, char ** argv) : LSingleApplication(argc, argv, "lu lastActiveWin = 0; cleansession = true; TrayStopping = false; + xchange = false; ICONS = new LIconCache(this); screenTimer = new QTimer(this); screenTimer->setSingleShot(true); @@ -364,12 +365,14 @@ void LSession::screensChanged(){ qDebug() << "Screen Number Changed"; if(screenTimer->isActive()){ screenTimer->stop(); } screenTimer->start(); + xchange = true; } void LSession::screenResized(int scrn){ qDebug() << "Screen Resized:" << scrn; if(screenTimer->isActive()){ screenTimer->stop(); } screenTimer->start(); + xchange = true; } void LSession::checkWindowGeoms(){ @@ -467,9 +470,10 @@ void LSession::updateDesktops(){ } dset.setValue("last_used_screens", allNames); //Make sure fluxbox also gets prompted to re-load screen config if the number of screens changes in the middle of a session - if(numchange && !firstrun) { + if(!firstrun && xchange){ qDebug() << "Update WM"; - refreshWindowManager(); + //QProcess::startDetached("killall fluxbox"); + xchange = false; } //Make sure all the background windows are registered on the system as virtual roots @@ -660,6 +664,7 @@ void LSession::playAudioFile(QString filepath){ void LSession::RootSizeChange(){ qDebug() << "Got Root Size Change"; if(DESKTOPS.isEmpty()){ return; } //Initial setup not run yet + xchange = true; screenTimer->start(); } |