summaryrefslogtreecommitdiff
path: root/structs.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-11-12 15:50:47 +1300
committerBossCode45 <human.cyborg42@gmail.com>2023-11-12 15:50:47 +1300
commit2c9d13e954c2ee66ff4d43949bedc73e60637a34 (patch)
tree55f1d0f160b08f7c9bd319717cf5f26fcf293245 /structs.h
parent6b5c246a431dcaff119833724137f0716fa2a002 (diff)
downloadYATwm-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.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/structs.h b/structs.h
index 8215bf5..c2436f3 100644
--- a/structs.h
+++ b/structs.h
@@ -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