summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.h')
-rw-r--r--dwm.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/dwm.h b/dwm.h
index a7053c5..674ab1e 100644
--- a/dwm.h
+++ b/dwm.h
@@ -36,8 +36,6 @@
36 36
37/* mask shorthands, used in event.c and client.c */ 37/* mask shorthands, used in event.c and client.c */
38#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) 38#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
39/* other stuff used in different places */
40#define PROTODELWIN 1
41 39
42enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ 40enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */
43enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ 41enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
@@ -69,14 +67,13 @@ typedef struct {
69typedef struct Client Client; 67typedef struct Client Client;
70struct Client { 68struct Client {
71 char name[256]; 69 char name[256];
72 int proto;
73 int x, y, w, h; 70 int x, y, w, h;
74 int rx, ry, rw, rh; /* revert geometry */ 71 int rx, ry, rw, rh; /* revert geometry */
75 int basew, baseh, incw, inch, maxw, maxh, minw, minh; 72 int basew, baseh, incw, inch, maxw, maxh, minw, minh;
76 int minax, minay, maxax, maxay; 73 int minax, minay, maxax, maxay;
77 long flags; 74 long flags;
78 unsigned int border; 75 unsigned int border;
79 Bool isfloat, isfixed, ismax; 76 Bool isfixed, isfloat, ismax;
80 Bool *tags; 77 Bool *tags;
81 Client *next; 78 Client *next;
82 Client *prev; 79 Client *prev;
@@ -105,6 +102,7 @@ extern Window root, barwin;
105extern void configure(Client *c); /* send synthetic configure event */ 102extern void configure(Client *c); /* send synthetic configure event */
106extern void focus(Client *c); /* focus c, c may be NULL */ 103extern void focus(Client *c); /* focus c, c may be NULL */
107extern Client *getclient(Window w); /* return client of w */ 104extern Client *getclient(Window w); /* return client of w */
105extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */
108extern void killclient(Arg *arg); /* kill c nicely */ 106extern void killclient(Arg *arg); /* kill c nicely */
109extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 107extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
110extern void resize(Client *c, Bool sizehints); /* resize c*/ 108extern void resize(Client *c, Bool sizehints); /* resize c*/
@@ -123,7 +121,6 @@ extern void grabkeys(void); /* grab all keys defined in config.h */
123extern void procevent(void); /* process pending X events */ 121extern void procevent(void); /* process pending X events */
124 122
125/* main.c */ 123/* main.c */
126extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */
127extern void quit(Arg *arg); /* quit dwm nicely */ 124extern void quit(Arg *arg); /* quit dwm nicely */
128extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ 125extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
129extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 126extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */