summaryrefslogtreecommitdiff
path: root/ewmh.h
diff options
context:
space:
mode:
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);