2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
10 #include <X11/Xutil.h>
12 #define WM_PROTOCOL_DELWIN 1
14 typedef struct Client Client;
15 typedef struct Key Key;
18 enum { WMProtocols, WMDelete, WMLast };
19 enum { NetSupported, NetWMName, NetLast };
22 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
25 char name[256], tag[256];
29 int basew, baseh, incw, inch, maxw, maxh, minw, minh;
41 void (*func)(void *aux);
46 extern Window root, barwin;
47 extern Atom wm_atom[WMLast], net_atom[NetLast];
48 extern Cursor cursor[CurLast];
49 extern XRectangle rect, barrect;
50 extern Bool running, sel_screen, grid;
51 extern void (*handler[LASTEvent]) (XEvent *);
54 extern char statustext[1024], tag[256];
57 extern Client *clients, *stack;
60 extern void draw_bar();
63 extern void run(void *aux);
64 extern void quit(void *aux);
65 extern void kill(void *aux);
68 extern void manage(Window w, XWindowAttributes *wa);
69 extern void unmanage(Client *c);
70 extern Client *getclient(Window w);
71 extern void focus(Client *c);
72 extern void update_name(Client *c);
73 extern void draw_client(Client *c);
74 extern void resize(Client *c);
75 extern void update_size(Client *c);
78 extern unsigned int discard_events(long even_mask);
81 extern void update_keys();
82 extern void keypress(XEvent *e);
85 extern void mresize(Client *c);
86 extern void mmove(Client *c);
89 extern int error_handler(Display *dpy, XErrorEvent *error);
90 extern void send_message(Window w, Atom a, long value);
91 extern int win_proto(Window w);