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