summaryrefslogtreecommitdiff
path: root/src/structs.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2024-12-01 19:24:09 +1300
committerBossCode45 <human.cyborg42@gmail.com>2024-12-01 19:24:09 +1300
commit8dca89a1be23f0de2dd1676b95feb6b46cbdd5f2 (patch)
tree7ebc1a5161bbe70d6ab6a0e5353a1a622240c915 /src/structs.h
parente162dff48c251e262f475de9261f0ecfa0f39dc4 (diff)
parent434ec6542d0d79190c6aa7003aac91b03cad4398 (diff)
downloadYATwm-8dca89a1be23f0de2dd1676b95feb6b46cbdd5f2.tar.gz
YATwm-8dca89a1be23f0de2dd1676b95feb6b46cbdd5f2.zip
Merge branch 'IPC'
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
new file mode 100644
index 0000000..5273f52
--- /dev/null
+++ b/src/structs.h
@@ -0,0 +1,55 @@
+#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 RootData
+{
+ std::vector<int> floatingFrameIDs;
+ Window focus;
+ //int workspaceNumber;
+};
+
+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;
+
+ // Null if not root
+ RootData* rootData;
+};
+
+struct ScreenInfo
+{
+ std::string name;
+ int x, y, w, h;
+};