summaryrefslogtreecommitdiffstats
path: root/wm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-10 22:16:48 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-10 22:16:48 +0200
commit439e15d09f6fa9271d3b49ef97194f0c80ebe161 (patch)
tree0f1abd8629f3fc226bb313ce29f00b6b8424f375 /wm.h
parentrenamed gridmenu.c into menu.c (diff)
downloaddwm-439e15d09f6fa9271d3b49ef97194f0c80ebe161.tar.gz
dwm-439e15d09f6fa9271d3b49ef97194f0c80ebe161.zip
added several other stuff
Diffstat (limited to 'wm.h')
-rw-r--r--wm.h40
1 files changed, 24 insertions, 16 deletions
diff --git a/wm.h b/wm.h
index 6bf0d5e..038078f 100644
--- a/wm.h
+++ b/wm.h
@@ -9,16 +9,14 @@
9 9
10#include <X11/Xutil.h> 10#include <X11/Xutil.h>
11 11
12/* WM atoms */ 12/* atoms */
13enum { WMState, WMProtocols, WMDelete, WMLast }; 13enum { WMState, WMProtocols, WMDelete, WMLast };
14
15/* NET atoms */
16enum { NetSupported, NetWMName, NetLast }; 14enum { NetSupported, NetWMName, NetLast };
17 15
18/* Cursor */ 16/* cursor */
19enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; 17enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
20 18
21/* Rects */ 19/* rects */
22enum { RFloat, RGrid, RLast }; 20enum { RFloat, RGrid, RLast };
23 21
24typedef struct Client Client; 22typedef struct Client Client;
@@ -28,35 +26,45 @@ struct Client {
28 Tag *tag; 26 Tag *tag;
29 char name[256]; 27 char name[256];
30 int proto; 28 int proto;
29 unsigned int border;
30 Bool fixedsize;
31 Window win; 31 Window win;
32 Window trans; 32 Window trans;
33 Window title; 33 Window title;
34 GC gc;
35 XSizeHints size; 34 XSizeHints size;
36 XRectangle r[RLast]; 35 XRectangle r[RLast];
37 Client *next; 36 Client *next;
38 Client *tnext; 37 Client *snext;
39 Client *tprev;
40}; 38};
41 39
42struct Tag { 40struct Tag {
43 char name[256]; 41 char name[256];
44 Client *clients; 42 Client *stack;
45 Client *sel;
46 XRectangle r; 43 XRectangle r;
44 Tag *next;
45 Tag *cnext;
47}; 46};
48 47
49extern Display *dpy; 48extern Display *dpy;
50extern Window root; 49extern Window root, barwin;
51extern XRectangle rect; 50extern Atom wm_atom[WMLast], net_atom[NetLast];
52extern Atom wm_atom[WMLast];
53extern Atom net_atom[NetLast];
54extern Cursor cursor[CurLast]; 51extern Cursor cursor[CurLast];
55extern Pixmap pmap; 52extern XRectangle rect, barrect;
53extern Bool running;
54extern void (*handler[LASTEvent]) (XEvent *);
56 55
57extern int screen, sel_screen; 56extern int screen, sel_screen;
58extern unsigned int kmask, numlock_mask; 57extern unsigned int lock_mask, numlock_mask;
58extern char *bartext, *shell;
59 59
60extern Brush brush; 60extern Brush brush;
61 61
62/* bar.c */
63extern void draw_bar();
64
65/* client.c */
66extern Client *create_client(Window w, XWindowAttributes *wa);
67extern void manage(Client *c);
68
62/* wm.c */ 69/* wm.c */
70extern int win_proto(Window w);