dwm-meillo

diff event.c @ 159:a5eab6aaf859

reverting to old resize policy
author arg@10ksloc.org
date Wed, 02 Aug 2006 10:48:58 +0200
parents 4e42dfc0f61f
children c8db0a825775
line diff
     1.1 --- a/event.c	Wed Aug 02 10:43:21 2006 +0200
     1.2 +++ b/event.c	Wed Aug 02 10:48:58 2006 +0200
     1.3 @@ -153,6 +153,7 @@
     1.4  	XConfigureRequestEvent *ev = &e->xconfigurerequest;
     1.5  	XWindowChanges wc;
     1.6  
     1.7 +	ev->value_mask &= ~CWSibling;
     1.8  	if((c = getclient(ev->window))) {
     1.9  		gravitate(c, True);
    1.10  		if(ev->value_mask & CWX)
    1.11 @@ -168,16 +169,18 @@
    1.12  		gravitate(c, False);
    1.13  		resize(c, True, TopLeft);
    1.14  	}
    1.15 -	else {
    1.16 -		wc.x = ev->x;
    1.17 -		wc.y = ev->y;
    1.18 -		wc.width = ev->width;
    1.19 -		wc.height = ev->height;
    1.20 -		wc.border_width = 1;
    1.21 -		XConfigureWindow(dpy, ev->window,
    1.22 -				CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
    1.23 -		XSync(dpy, False);
    1.24 -	}
    1.25 +
    1.26 +	wc.x = ev->x;
    1.27 +	wc.y = ev->y;
    1.28 +	wc.width = ev->width;
    1.29 +	wc.height = ev->height;
    1.30 +	wc.border_width = 1;
    1.31 +	wc.sibling = None;
    1.32 +	wc.stack_mode = Above;
    1.33 +	ev->value_mask &= ~CWStackMode;
    1.34 +	ev->value_mask |= CWBorderWidth;
    1.35 +	XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
    1.36 +	XSync(dpy, False);
    1.37  }
    1.38  
    1.39  static void