aewl

diff dwm.h @ 734:6283adb1fcf2

replaced getproto with a saner function, now old-school artifacts of WM times in the early 90s completely disappeared, no punned pointer warning anymore ;)
author Anselm R. Garbe <arg@suckless.org>
date Wed, 07 Feb 2007 12:37:06 +0100
parents 29c9b557ed95
children 08b89915c109
line diff
     1.1 --- a/dwm.h	Tue Feb 06 15:29:19 2007 +0100
     1.2 +++ b/dwm.h	Wed Feb 07 12:37:06 2007 +0100
     1.3 @@ -36,8 +36,6 @@
     1.4  
     1.5  /* mask shorthands, used in event.c and client.c */
     1.6  #define BUTTONMASK		(ButtonPressMask | ButtonReleaseMask)
     1.7 -/* other stuff used in different places */
     1.8 -#define PROTODELWIN		1
     1.9  
    1.10  enum { NetSupported, NetWMName, NetLast };		/* EWMH atoms */
    1.11  enum { WMProtocols, WMDelete, WMState, WMLast };	/* default atoms */
    1.12 @@ -69,14 +67,13 @@
    1.13  typedef struct Client Client;
    1.14  struct Client {
    1.15  	char name[256];
    1.16 -	int proto;
    1.17  	int x, y, w, h;
    1.18  	int rx, ry, rw, rh; /* revert geometry */
    1.19  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
    1.20  	int minax, minay, maxax, maxay;
    1.21  	long flags; 
    1.22  	unsigned int border;
    1.23 -	Bool isfloat, isfixed, ismax;
    1.24 +	Bool isfixed, isfloat, ismax;
    1.25  	Bool *tags;
    1.26  	Client *next;
    1.27  	Client *prev;
    1.28 @@ -105,6 +102,7 @@
    1.29  extern void configure(Client *c);		/* send synthetic configure event */
    1.30  extern void focus(Client *c);			/* focus c, c may be NULL */
    1.31  extern Client *getclient(Window w);		/* return client of w */
    1.32 +extern Bool isprotodel(Client *c);		/* returns True if c->win supports wmatom[WMDelete] */
    1.33  extern void killclient(Arg *arg);		/* kill c nicely */
    1.34  extern void manage(Window w, XWindowAttributes *wa);	/* manage new client */
    1.35  extern void resize(Client *c, Bool sizehints);	/* resize c*/
    1.36 @@ -123,7 +121,6 @@
    1.37  extern void procevent(void);			/* process pending X events */
    1.38  
    1.39  /* main.c */
    1.40 -extern int getproto(Window w);			/* return protocol mask of WMProtocols property of w */
    1.41  extern void quit(Arg *arg);			/* quit dwm nicely */
    1.42  extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
    1.43  extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */