diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-13 21:42:17 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-13 21:42:17 +0200 |
commit | 66da15324eef4f85c6dda13eba80430dc4cc97bb (patch) | |
tree | b2ecd808ad31e5237cabebdc7d80fc6a4edaf1f4 /event.c | |
parent | 7fe717c29f9dafc4fc38313adbbb7c85619dec69 (diff) | |
download | dwm-66da15324eef4f85c6dda13eba80430dc4cc97bb.tar.gz dwm-66da15324eef4f85c6dda13eba80430dc4cc97bb.tar.bz2 dwm-66da15324eef4f85c6dda13eba80430dc4cc97bb.zip |
added mini stuff
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -89,6 +89,7 @@ configurerequest(XEvent *e) if(ev->value_mask & CWBorderWidth) c->border = ev->border_width; gravitate(c, False); + resize(c, True); } wc.x = ev->x; @@ -179,6 +180,7 @@ static void propertynotify(XEvent *e) { XPropertyEvent *ev = &e->xproperty; + Window trans; Client *c; if(ev->state == PropertyDelete) @@ -192,9 +194,10 @@ propertynotify(XEvent *e) switch (ev->atom) { default: break; case XA_WM_TRANSIENT_FOR: - XGetTransientForHint(dpy, c->win, &c->trans); + XGetTransientForHint(dpy, c->win, &trans); + if(!c->floating && (c->floating = (trans != 0))) + arrange(NULL); break; - update_size(c); case XA_WM_NORMAL_HINTS: update_size(c); break; |