aewl
diff event.c @ 158:4e42dfc0f61f
new resize stuff (using XConfigureWindow instead of XSendEvent)
author | arg@10ksloc.org |
---|---|
date | Wed, 02 Aug 2006 10:43:21 +0200 |
parents | 02545d36e9d3 |
children | a5eab6aaf859 |
line diff
1.1 --- a/event.c Tue Aug 01 16:44:23 2006 +0200 1.2 +++ b/event.c Wed Aug 02 10:43:21 2006 +0200 1.3 @@ -153,7 +153,6 @@ 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 @@ -169,18 +168,16 @@ 1.12 gravitate(c, False); 1.13 resize(c, True, TopLeft); 1.14 } 1.15 - 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 - wc.sibling = None; 1.22 - wc.stack_mode = Above; 1.23 - ev->value_mask &= ~CWStackMode; 1.24 - ev->value_mask |= CWBorderWidth; 1.25 - XConfigureWindow(dpy, ev->window, ev->value_mask, &wc); 1.26 - XSync(dpy, False); 1.27 + else { 1.28 + wc.x = ev->x; 1.29 + wc.y = ev->y; 1.30 + wc.width = ev->width; 1.31 + wc.height = ev->height; 1.32 + wc.border_width = 1; 1.33 + XConfigureWindow(dpy, ev->window, 1.34 + CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); 1.35 + XSync(dpy, False); 1.36 + } 1.37 } 1.38 1.39 static void