diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2024-10-01 14:58:13 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2024-10-01 14:58:13 +1300 |
| commit | 8b48a9cfc4b0795a62a515e2519e7194d1d57347 (patch) | |
| tree | fc0d0d6df5bb0c10853cb3ba77bc48cc48a2d23d /src/structs.h | |
| parent | 915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5 (diff) | |
| parent | e162dff48c251e262f475de9261f0ecfa0f39dc4 (diff) | |
| download | YATwm-8b48a9cfc4b0795a62a515e2519e7194d1d57347.tar.gz YATwm-8b48a9cfc4b0795a62a515e2519e7194d1d57347.zip | |
Merge branch 'main' into IPC
Diffstat (limited to 'src/structs.h')
| -rw-r--r-- | src/structs.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/structs.h b/src/structs.h index 8215bf5..5273f52 100644 --- a/src/structs.h +++ b/src/structs.h @@ -23,6 +23,13 @@ enum TileDir noDir }; +struct RootData +{ + std::vector<int> floatingFrameIDs; + Window focus; + //int workspaceNumber; +}; + struct Frame { int ID; @@ -30,15 +37,15 @@ struct Frame bool isClient; - //If its a client (window) + // If its a client (window) int cID; - //If it isn't a client + // If it isn't a client TileDir dir; std::vector<int> subFrameIDs; - bool isRoot; - std::vector<int> floatingFrameIDs; - //int whichChildFocused = 0; + + // Null if not root + RootData* rootData; }; struct ScreenInfo |
