diff options
author | arg@10ksloc.org <unknown> | 2006-08-02 10:48:58 +0200 |
---|---|---|
committer | arg@10ksloc.org <unknown> | 2006-08-02 10:48:58 +0200 |
commit | 57871415c16664cce494b68dd3e985bcb32942c5 (patch) | |
tree | 1d0574e3a5cdf6fecc145dc65db5061e7c19b7d3 /event.c | |
parent | 52021851d1fd78970dfe63380d51b87f57d1ee1b (diff) | |
download | dwm-57871415c16664cce494b68dd3e985bcb32942c5.tar.gz |
reverting to old resize policy
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -153,6 +153,7 @@ configurerequest(XEvent *e) XConfigureRequestEvent *ev = &e->xconfigurerequest; XWindowChanges wc; + ev->value_mask &= ~CWSibling; if((c = getclient(ev->window))) { gravitate(c, True); if(ev->value_mask & CWX) @@ -168,16 +169,18 @@ configurerequest(XEvent *e) gravitate(c, False); resize(c, True, TopLeft); } - else { - wc.x = ev->x; - wc.y = ev->y; - wc.width = ev->width; - wc.height = ev->height; - wc.border_width = 1; - XConfigureWindow(dpy, ev->window, - CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); - XSync(dpy, False); - } + + wc.x = ev->x; + wc.y = ev->y; + wc.width = ev->width; + wc.height = ev->height; + wc.border_width = 1; + wc.sibling = None; + wc.stack_mode = Above; + ev->value_mask &= ~CWStackMode; + ev->value_mask |= CWBorderWidth; + XConfigureWindow(dpy, ev->window, ev->value_mask, &wc); + XSync(dpy, False); } static void |