From 256eddeaeca4fb741b703a824989c47057944a68 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 6 Jul 2016 13:43:25 -0400 Subject: Disable fluxbox initialization within the lumina-desktop binary. (moved to start-lumina-desktop). --- src-qt5/core/lumina-desktop/LSession.cpp | 22 +++++++++++----------- src-qt5/core/lumina-desktop/LSession.h | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src-qt5/core/lumina-desktop') diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index 5de9920d..28b7eb2d 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -68,11 +68,11 @@ LSession::LSession(int &argc, char ** argv) : LSingleApplication(argc, argv, "lu LSession::~LSession(){ if(this->isPrimaryProcess()){ - WM->stopWM(); + //WM->stopWM(); for(int i=0; ielapsed();} - WM = new WMProcess(); - WM->startWM(); + //splash.showScreen("wm"); + //if(DEBUG){ qDebug() << " - Init WM:" << timer->elapsed();} + //WM = new WMProcess(); + //WM->startWM(); //Initialize the global menus qDebug() << " - Initialize system menus"; @@ -208,7 +208,7 @@ void LSession::CleanupSession(){ evFilter->StopEventHandling(); //Stop the window manager qDebug() << " - Stopping the window manager"; - WM->stopWM(); + //WM->stopWM(); //Now close down the desktop qDebug() << " - Closing down the desktop elements"; for(int i=0; isync(); emit SessionConfigChanged(); } + //if(changed.endsWith("fluxbox-init") || changed.endsWith("fluxbox-keys")){ refreshWindowManager(); } + if(changed.endsWith("sessionsettings.conf") ){ sessionsettings->sync(); emit SessionConfigChanged(); } else if(changed.endsWith("desktopsettings.conf") ){ emit DesktopConfigChanged(); } else if(changed == QDir::homePath()+"/Desktop" || changed == QDir::homePath()+"/"+tr("Desktop") ){ desktopFiles = QDir(changed).entryInfoList(QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs ,QDir::Name | QDir::IgnoreCase | QDir::DirsFirst); @@ -367,7 +367,7 @@ void LSession::checkUserFiles(){ } void LSession::refreshWindowManager(){ - WM->updateWM(); + LUtils::runCmd("touch \""+QString(getenv("XDG_CONFIG_HOME"))+"/lumina-desktop/fluxbox-init\"" ); } void LSession::updateDesktops(){ @@ -419,7 +419,7 @@ void LSession::updateDesktops(){ //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) { qDebug() << "Update WM"; - WM->updateWM(); + refreshWindowManager(); } //Make sure all the background windows are registered on the system as virtual roots diff --git a/src-qt5/core/lumina-desktop/LSession.h b/src-qt5/core/lumina-desktop/LSession.h index d046bdc7..f9e2acb3 100644 --- a/src-qt5/core/lumina-desktop/LSession.h +++ b/src-qt5/core/lumina-desktop/LSession.h @@ -27,7 +27,7 @@ #include "SettingsMenu.h" #include "SystemWindow.h" #include "LDesktop.h" -#include "WMProcess.h" +//#include "WMProcess.h" //#include "BootSplash.h" #include @@ -105,7 +105,7 @@ public: void adjustWindowGeom(WId win, bool maximize = false); private: - WMProcess *WM; + //WMProcess *WM; QList DESKTOPS; QFileSystemWatcher *watcher; QTimer *screenTimer; -- cgit