about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-02 10:43:21 +0200
committerarg@10ksloc.org <unknown>2006-08-02 10:43:21 +0200
commit52021851d1fd78970dfe63380d51b87f57d1ee1b (patch)
treed920e56d105de51643bc58eb98b1649cef23a0de /event.c
parent080a38d62d18be2ab98f66ed190d3d9e3463fec9 (diff)
downloaddwm-52021851d1fd78970dfe63380d51b87f57d1ee1b.tar.gz
new resize stuff (using XConfigureWindow instead of XSendEvent)
Diffstat (limited to 'event.c')
-rw-r--r--event.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/event.c b/event.c
index 1aed904..4008a73 100644
--- a/event.c
+++ b/event.c
@@ -153,7 +153,6 @@ 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)
@@ -169,18 +168,16 @@ configurerequest(XEvent *e)
 		gravitate(c, False);
 		resize(c, True, TopLeft);
 	}
-
-	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);
+	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);
+	}
 }
 
 static void