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.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/wm.h b/wm.h
index 055ef62..7ee6103 100644
--- a/wm.h
+++ b/wm.h
@@ -11,6 +11,22 @@
 
 #define WM_PROTOCOL_DELWIN 1
 
+typedef struct Client Client;
+typedef struct Key Key;
+typedef enum Align Align;
+
+enum Align {
+	NORTH = 0x01,
+	EAST  = 0x02,
+	SOUTH = 0x04,
+	WEST  = 0x08,
+	NEAST = NORTH | EAST,
+	NWEST = NORTH | WEST,
+	SEAST = SOUTH | EAST,
+	SWEST = SOUTH | WEST,
+	CENTER = NEAST | SWEST
+};
+
 /* atoms */
 enum { WMProtocols, WMDelete, WMLast };
 enum { NetSupported, NetWMName, NetLast };
@@ -21,9 +37,6 @@ enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
 /* rects */
 enum { RFloat, RGrid, RLast };
 
-typedef struct Client Client;
-typedef struct Key Key;
-
 struct Client {
 	char name[256];
 	char tag[256];
@@ -75,14 +88,19 @@ extern Client *getclient(Window w);
 extern void focus(Client *c);
 extern void update_name(Client *c);
 extern void draw_client(Client *c);
+extern void resize(Client *c);
 
 /* event.c */
-extern unsigned int flush_events(long even_mask);
+extern unsigned int discard_events(long even_mask);
 
 /* key.c */
 extern void update_keys();
 extern void keypress(XEvent *e);
 
+/* mouse.c */
+extern void mresize(Client *c);
+extern void mmove(Client *c);
+
 /* wm.c */
 extern int error_handler(Display *dpy, XErrorEvent *error);
 extern void send_message(Window w, Atom a, long value);
ter Kartik K. Agaram <vc@akkartik.com> 2021-03-21 23:10:55 -0700 shell: read initial expression from secondary disk' href='/akkartik/mu/commit/400.mu?h=main&id=e6b42204ef1b44464ffb71340de6d445b8240c27'>e6b42204 ^
49a99383 ^


71e4f381 ^


67aeff89 ^
c5a3f655 ^
91dc5814 ^

c5a3f655 ^
71e4f381 ^
d94821d3 ^


7b2d39b8 ^
4e70cac9 ^


adc92f49 ^
73744d09 ^
d94821d3 ^
8dc3c85a ^


71e4f381 ^
c9093dbb ^

91dc5814 ^
9d7d99fe ^
c5a3f655 ^
9d7d99fe ^
91dc5814 ^
492fb278 ^
71e4f381 ^
4b57c101 ^



71e4f381 ^
91dc5814 ^
cec5ef31 ^
c5a3f655 ^
cec5ef31 ^
c5a3f655 ^
b8d613e7 ^
1a1a1671 ^
91dc5814 ^


1a1a1671 ^
c5a3f655 ^
91dc5814 ^




01b72aa0 ^

91dc5814 ^

01b72aa0 ^
e2b55208 ^
01b72aa0 ^

e2b55208 ^
91dc5814 ^


c5a3f655 ^
eea6659a ^
c5a3f655 ^
86a12476 ^
1a1a1671 ^
91dc5814 ^
eea6659a ^


18d5bab2 ^

91dc5814 ^

71418907 ^

91dc5814 ^

5462619d ^
c79b93ca ^
307745bc ^
71e4f381 ^



6f65b65f ^

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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114