comparison event.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 4ce65f61f01b
children
comparison
equal deleted inserted replaced
733:1950833a5614 734:6283adb1fcf2
306 XPropertyEvent *ev = &e->xproperty; 306 XPropertyEvent *ev = &e->xproperty;
307 307
308 if(ev->state == PropertyDelete) 308 if(ev->state == PropertyDelete)
309 return; /* ignore */ 309 return; /* ignore */
310 if((c = getclient(ev->window))) { 310 if((c = getclient(ev->window))) {
311 if(ev->atom == wmatom[WMProtocols]) {
312 c->proto = getproto(c->win);
313 return;
314 }
315 switch (ev->atom) { 311 switch (ev->atom) {
316 default: break; 312 default: break;
317 case XA_WM_TRANSIENT_FOR: 313 case XA_WM_TRANSIENT_FOR:
318 XGetTransientForHint(dpy, c->win, &trans); 314 XGetTransientForHint(dpy, c->win, &trans);
319 if(!c->isfloat && (c->isfloat = (trans != 0))) 315 if(!c->isfloat && (c->isfloat = (trans != 0)))