diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-23 01:28:20 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-23 01:49:23 +0100 |
| commit | 29308b94ca2d95597b3c4e3ac1d3edbcd2f23cdd (patch) | |
| tree | bc7c9b36fc4941f17c81625964e5110118695b10 /src/desktop/Window.hpp | |
| parent | 7778f01194d84fae18827fd338299dd7482ef7c5 (diff) | |
windows: add misc:initial_workspace_tracking
By default enabled, will track the initial opened workspace of a window spawned for 2 minutes or until it's moved to a different workspace.
For example: you run a launcher and open an app on workspace 1, but quickly switch to workspace 2. The app will now open on workspace 1 regardless of your switch.
Diffstat (limited to 'src/desktop/Window.hpp')
| -rw-r--r-- | src/desktop/Window.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp index 5007cef4..cc4d1757 100644 --- a/src/desktop/Window.hpp +++ b/src/desktop/Window.hpp @@ -357,6 +357,9 @@ class CWindow { // for idle inhibiting windows eIdleInhibitMode m_eIdleInhibitMode = IDLEINHIBIT_NONE; + // initial token. Will be unregistered on workspace change or timeout of 2 minutes + std::string m_szInitialWorkspaceToken = ""; + // for groups struct SGroupData { CWindow* pNextWindow = nullptr; // nullptr means no grouping. Self means single group. @@ -437,6 +440,9 @@ class CWindow { void setAnimationsToMove(); void onWorkspaceAnimUpdate(); + // + std::unordered_map<std::string, std::string> getEnv(); + private: // For hidden windows and stuff bool m_bHidden = false; |
