event.c
changeset 30 2e0fb4130bfb
parent 29 8ad86d0a6a53
child 31 386649deb651
equal deleted inserted replaced
29:8ad86d0a6a53 30:2e0fb4130bfb
   184 	Client *c;
   184 	Client *c;
   185 
   185 
   186 	if(ev->state == PropertyDelete)
   186 	if(ev->state == PropertyDelete)
   187 		return; /* ignore */
   187 		return; /* ignore */
   188 
   188 
   189 	if(ev->atom == wm_atom[WMProtocols]) {
       
   190 		c->proto = win_proto(c->win);
       
   191 		return;
       
   192 	}
       
   193 	if((c = getclient(ev->window))) {
   189 	if((c = getclient(ev->window))) {
       
   190 		if(ev->atom == wm_atom[WMProtocols]) {
       
   191 			c->proto = win_proto(c->win);
       
   192 			return;
       
   193 		}
   194 		switch (ev->atom) {
   194 		switch (ev->atom) {
   195 			default: break;
   195 			default: break;
   196 			case XA_WM_TRANSIENT_FOR:
   196 			case XA_WM_TRANSIENT_FOR:
   197 				XGetTransientForHint(dpy, c->win, &c->trans);
   197 				XGetTransientForHint(dpy, c->win, &c->trans);
   198 				break;
   198 				break;