aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-desktop/LSession.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LSession.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp
index 777affd1..bbed6d79 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);
@@ -91,6 +92,7 @@ void LSession::setupSession(){
//Seed random number generator (if needed)
qsrand( QTime::currentTime().msec() );
+ currTranslator = LUtils::LoadTranslation(this, "lumina-desktop");
BootSplash splash;
splash.showScreen("init");
qDebug() << "Initializing Session";
@@ -114,7 +116,6 @@ void LSession::setupSession(){
sessionsettings->value("InitLocale/LC_COLLATE","").toString(), \
sessionsettings->value("InitLocale/LC_CTYPE","").toString() );
}
- currTranslator = LUtils::LoadTranslation(this, "lumina-desktop");
//use the system settings
//Setup the user's lumina settings directory as necessary
splash.showScreen("user");
@@ -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();
}
bgstack15