aewl
diff event.c @ 53:529901e6a227
added mini stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Thu, 13 Jul 2006 21:42:17 +0200 |
parents | 989178822938 |
children | fcbf7213d96f |
line diff
1.1 --- a/event.c Thu Jul 13 20:28:19 2006 +0200 1.2 +++ b/event.c Thu Jul 13 21:42:17 2006 +0200 1.3 @@ -89,6 +89,7 @@ 1.4 if(ev->value_mask & CWBorderWidth) 1.5 c->border = ev->border_width; 1.6 gravitate(c, False); 1.7 + resize(c, True); 1.8 } 1.9 1.10 wc.x = ev->x; 1.11 @@ -179,6 +180,7 @@ 1.12 propertynotify(XEvent *e) 1.13 { 1.14 XPropertyEvent *ev = &e->xproperty; 1.15 + Window trans; 1.16 Client *c; 1.17 1.18 if(ev->state == PropertyDelete) 1.19 @@ -192,9 +194,10 @@ 1.20 switch (ev->atom) { 1.21 default: break; 1.22 case XA_WM_TRANSIENT_FOR: 1.23 - XGetTransientForHint(dpy, c->win, &c->trans); 1.24 + XGetTransientForHint(dpy, c->win, &trans); 1.25 + if(!c->floating && (c->floating = (trans != 0))) 1.26 + arrange(NULL); 1.27 break; 1.28 - update_size(c); 1.29 case XA_WM_NORMAL_HINTS: 1.30 update_size(c); 1.31 break;