diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-11-12 15:50:47 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-11-12 15:50:47 +1300 |
| commit | 2c9d13e954c2ee66ff4d43949bedc73e60637a34 (patch) | |
| tree | 55f1d0f160b08f7c9bd319717cf5f26fcf293245 /structs.h | |
| parent | 6b5c246a431dcaff119833724137f0716fa2a002 (diff) | |
| download | YATwm-2c9d13e954c2ee66ff4d43949bedc73e60637a34.tar.gz YATwm-2c9d13e954c2ee66ff4d43949bedc73e60637a34.zip | |
refactor: Restructed the `Frame' class
Now includes a pointer to a `RootData' class for root windows (workspaces)
Diffstat (limited to 'structs.h')
| -rw-r--r-- | structs.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -23,6 +23,13 @@ enum TileDir noDir }; +struct RootData +{ + std::vector<int> floatingFrameIDs; + //int workspaceNumber; + //int whichChildFocused = 0; +}; + 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 |
