aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-16 11:09:26 -0400
committerKen Moore <moorekou@gmail.com>2015-09-16 11:09:26 -0400
commit470d9b82a7269cfec9e6b9d79074deff7bb62dc9 (patch)
tree643dbc7c6f17e8168cbc271af43afd605f3a3434 /lumina-desktop/LSession.h
parentEnsure that the screen brightness slider in the system dashboard only goes do... (diff)
downloadlumina-470d9b82a7269cfec9e6b9d79074deff7bb62dc9.tar.gz
lumina-470d9b82a7269cfec9e6b9d79074deff7bb62dc9.tar.bz2
lumina-470d9b82a7269cfec9e6b9d79074deff7bb62dc9.zip
Fix up all the window activation detection/management within the lumina session. Now when a submenu on the panel is closed somehow or a window was modified with the task manager, it will properly find/activate the right window again.
Diffstat (limited to 'lumina-desktop/LSession.h')
-rw-r--r--lumina-desktop/LSession.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lumina-desktop/LSession.h b/lumina-desktop/LSession.h
index 94f9b04d..247b7ecb 100644
--- a/lumina-desktop/LSession.h
+++ b/lumina-desktop/LSession.h
@@ -86,6 +86,9 @@ public:
QSettings* sessionSettings();
QSettings* DesktopPluginSettings();
+ //Keep track of which non-desktop window should be treated as active
+ WId activeWindow(); //This will return the last active window if a desktop element is currently active
+
//Temporarily change the session locale (nothing saved between sessions)
void switchLocale(QString localeCode);
@@ -117,6 +120,7 @@ private:
bool TrayStopping;
//Task Manager Variables
+ WId lastActiveWin;
QList<WId> RunningApps;
QList<WId> checkWin;
QFileInfoList desktopFiles;
bgstack15