aewl
diff main.c @ 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 | d99be681d502 |
children | f05da68014bd |
line diff
1.1 --- a/main.c Tue Feb 06 15:29:19 2007 +0100 1.2 +++ b/main.c Wed Feb 07 12:37:06 2007 +0100 1.3 @@ -172,24 +172,6 @@ 1.4 1.5 /* extern */ 1.6 1.7 -int 1.8 -getproto(Window w) { 1.9 - int i, format, protos, status; 1.10 - unsigned long extra, res; 1.11 - Atom *protocols, real; 1.12 - 1.13 - protos = 0; 1.14 - status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L, False, 1.15 - XA_ATOM, &real, &format, &res, &extra, (unsigned char **)&protocols); 1.16 - if(status != Success || protocols == 0) 1.17 - return protos; 1.18 - for(i = 0; i < res; i++) 1.19 - if(protocols[i] == wmatom[WMDelete]) 1.20 - protos |= PROTODELWIN; 1.21 - free(protocols); 1.22 - return protos; 1.23 -} 1.24 - 1.25 void 1.26 sendevent(Window w, Atom a, long value) { 1.27 XEvent e;