about summary refs log tree commit diff stats
path: root/wm.h
diff options
context:
space:
mode:
Diffstat (limited to 'wm.h')
-rw-r--r--wm.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/wm.h b/wm.h
new file mode 100644
index 0000000..3885cb5
--- /dev/null
+++ b/wm.h
@@ -0,0 +1,57 @@
+/*
+ * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
+ * See LICENSE file for license details.
+ */
+
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
+/* WM atoms */
+enum { WMState, WMProtocols, WMDelete, WMLast };
+
+/* NET atoms */
+enum { NetSupported, NetWMName, NetLast };
+
+/* Cursor */
+enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
+
+/* Rects */
+enum { RFloat, RGrid, RLast };
+
+typedef struct Client Client;
+typedef struct Tag Tag;
+
+struct Client {
+	Tag *tag;
+	char name[256];
+	int proto;
+	Window win;
+	Window trans;
+	Window title;
+	GC gc;
+	XSizeHints size;
+	XRectangle r[RLast];
+	Client *next;
+	Client *tnext;
+	Client *tprev;
+};
+
+struct Tag {
+	char name[256];
+	Client *clients;
+	Client *sel;
+	XRectangle r;
+};
+
+extern Display *dpy;
+extern Window root;
+extern XRectangle rect;
+extern int screen, sel_screen;
+extern unsigned int kmask, numlock_mask;
+extern Atom wm_atom[WMLast];
+extern Atom net_atom[NetLast];
+extern Cursor cursor[CurLast];
+extern Pixmap pmap;
+
+/* wm.c */
+extern void error(char *errstr, ...);
ik/mu/commit/html/tangle.mu.html?h=main&id=4690ce81e079fc58cae8d6d583e5e3eb3ed81a83'>4690ce81 ^
a654e4ec ^
4690ce81 ^
a654e4ec ^


c5ffb6e1 ^

a654e4ec ^





c5ffb6e1 ^

a654e4ec ^
e66851d8 ^
f5465e12 ^
c5ffb6e1 ^

f5465e12 ^
c5ffb6e1 ^


4690ce81 ^
f5465e12 ^
c603cd6c ^
f5465e12 ^
76755b28 ^
f5465e12 ^
76755b28 ^
c5ffb6e1 ^

76755b28 ^
c5ffb6e1 ^
f5465e12 ^

4690ce81 ^
c5ffb6e1 ^

76755b28 ^
c5ffb6e1 ^
f5465e12 ^
9570363a ^
c603cd6c ^
c5ffb6e1 ^

4690ce81 ^
f5465e12 ^

c5ffb6e1 ^




a654e4ec ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72