aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--monsterwm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 3c8d717..f1773fb 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -244,16 +244,14 @@ void configurerequest(XEvent *e) {
XConfigureRequestEvent *ev = &e->xconfigurerequest;
XWindowChanges wc;
- wc.x = ev->x;
- wc.y = ev->y + (showpanel && TOP_PANEL) ? PANEL_HEIGHT : 0;
- wc.width = (ev->width < sw - BORDER_WIDTH) ? ev->width : sw + BORDER_WIDTH;
- wc.height = (ev->height < sh - BORDER_WIDTH) ? ev->height : sh + BORDER_WIDTH;
- wc.border_width = ev->border_width;
+ wc.width = ev->width;
+ wc.height = ev->height;
wc.sibling = ev->above;
wc.stack_mode = ev->detail;
XConfigureWindow(dis, ev->window, ev->value_mask, &wc);
XSync(dis, False);
+ tile();
}
void deletewindow(Window w) {