From 39ed54a468f339535f82cce2c0a79b92e74a7c09 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 19 Feb 2007 11:34:12 +0100 Subject: simplified configurerequest to a bare minimum, removed wrong ban() calls --- event.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index 153b49a0..db3ce46e 100644 --- a/event.c +++ b/event.c @@ -184,16 +184,9 @@ configurerequest(XEvent *e) { c->h = ev->height; if((ev->value_mask & (CWX | CWY)) && !(ev->value_mask & (CWWidth | CWHeight))) - { configure(c); - if(isvisible(c)) - XMoveWindow(dpy, c->win, c->x, c->y); - } - else { + if(isvisible(c)) XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); - if(!isvisible(c)) - ban(c); - } } else configure(c); -- cgit v1.2.3