summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2024-10-01 14:54:37 +1300
committerBossCode45 <human.cyborg42@gmail.com>2024-10-01 14:54:37 +1300
commit915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5 (patch)
tree0d7a7569ab5fc30c90d5df91a54d312c764cf328 /src/structs.h
parentf998705c5a0e50021875a811537962083b73ed26 (diff)
downloadYATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.tar.gz
YATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.zip
Restructure
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
new file mode 100644
index 0000000..8215bf5
--- /dev/null
+++ b/src/structs.h
@@ -0,0 +1,48 @@
+#pragma once
+
+#include <X11/Xlib.h>
+
+#include <X11/extensions/Xrandr.h>
+#include <string>
+#include <vector>
+
+#define noID -1
+
+struct Client
+{
+ int ID;
+ Window w;
+ bool floating;
+ bool fullscreen;
+};
+
+enum TileDir
+{
+ horizontal,
+ vertical,
+ noDir
+};
+
+struct Frame
+{
+ int ID;
+ int pID;
+
+ bool isClient;
+
+ //If its a client (window)
+ int cID;
+
+ //If it isn't a client
+ TileDir dir;
+ std::vector<int> subFrameIDs;
+ bool isRoot;
+ std::vector<int> floatingFrameIDs;
+ //int whichChildFocused = 0;
+};
+
+struct ScreenInfo
+{
+ std::string name;
+ int x, y, w, h;
+};