summaryrefslogtreecommitdiff
path: root/ewmh.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2022-08-31 19:03:47 +1200
committerBossCode45 <human.cyborg42@gmail.com>2022-08-31 19:03:47 +1200
commit6cd20823086b831b78c393857bb46f9e8bbe61d8 (patch)
tree2743e9184cff4480089ff9a302c165178db6d82c /ewmh.h
parentcda9283495096867ffa5805b270a8113f592ae7e (diff)
downloadYATwm-6cd20823086b831b78c393857bb46f9e8bbe61d8.tar.gz
YATwm-6cd20823086b831b78c393857bb46f9e8bbe61d8.zip
ewmh.cpp
Diffstat (limited to 'ewmh.h')
-rw-r--r--ewmh.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/ewmh.h b/ewmh.h
new file mode 100644
index 0000000..d7b0741
--- /dev/null
+++ b/ewmh.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <X11/X.h>
+#include <X11/Xatom.h>
+
+#include <map>
+#include <string>
+
+#include "structs.h"
+
+void initEWMH(Display** dpy, Window* root, int numWS, std::string workspaceNames[]);
+
+void updateClientList(std::map<int, Client> clients);
+
+void setWindowDesktop(Window w, int desktop);
+
+void setCurrentDesktop(int desktop);
+
+int getProp(Window w, char* propName, Atom* type, unsigned char** data);