From 29308b94ca2d95597b3c4e3ac1d3edbcd2f23cdd Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 23 Apr 2024 01:28:20 +0100 Subject: 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. --- src/desktop/Window.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/desktop/Window.hpp') 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 getEnv(); + private: // For hidden windows and stuff bool m_bHidden = false; -- cgit v1.2.3