tokens: add more modes to initial_workspace_tracking

1 is single-shot, 2 is persistent

fixes #5732
This commit is contained in:
Vaxry
2024-04-24 16:16:46 +01:00
parent 81bb4eb2f6
commit 608eff600d
4 changed files with 52 additions and 8 deletions

View File

@@ -14,6 +14,8 @@
#include "DesktopTypes.hpp"
#include "../helpers/signal/Signal.hpp"
class CWindow;
enum eIdleInhibitMode {
IDLEINHIBIT_NONE = 0,
IDLEINHIBIT_ALWAYS,
@@ -188,6 +190,11 @@ struct SWindowRule {
std::string szWorkspace = ""; // empty means any
};
struct SInitialWorkspaceToken {
CWindow* primaryOwner = nullptr;
std::string workspace;
};
class CWindow {
public:
CWindow();