summaryrefslogtreecommitdiff
path: root/src/ewmh.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/ewmh.h
parentf998705c5a0e50021875a811537962083b73ed26 (diff)
downloadYATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.tar.gz
YATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.zip
Restructure
Diffstat (limited to 'src/ewmh.h')
-rw-r--r--src/ewmh.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ewmh.h b/src/ewmh.h
new file mode 100644
index 0000000..9473d5d
--- /dev/null
+++ b/src/ewmh.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include <X11/X.h>
+#include <X11/Xatom.h>
+
+#include <map>
+#include <string>
+#include <vector>
+
+#include "structs.h"
+#include "config.h"
+
+void initEWMH(Display** dpy, Window* root, int numWS, std::vector<Workspace> workspaces);
+
+void updateClientList(std::map<int, Client> clients);
+
+void setWindowDesktop(Window w, int desktop);
+
+void setCurrentDesktop(int desktop);
+
+void setFullscreen(Window w, bool fullscreen);
+
+void setIPCPath(unsigned char* path, int len);
+
+int getProp(Window w, char* propName, Atom* type, unsigned char** data);