summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c8
-rw-r--r--event.c9
2 files changed, 1 insertions, 16 deletions
diff --git a/client.c b/client.c
index bc26997f..79cd6982 100644
--- a/client.c
+++ b/client.c
@@ -68,14 +68,6 @@ xerrordummy(Display *dsply, XErrorEvent *ee) {
/* extern */
void
-ban(Client *c) {
- if(!c || c->isbanned)
- return;
- c->isbanned = True;
- XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
-}
-
-void
configure(Client *c) {
XConfigureEvent ce;
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);