tokens: add more modes to initial_workspace_tracking
1 is single-shot, 2 is persistent fixes #5732
This commit is contained in:
parent
81bb4eb2f6
commit
608eff600d
4 changed files with 52 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue