changeset: 768:b1dbe65d3e84
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Feb 19 11:34:12 2007 +0100
summary: simplified configurerequest to a bare minimum, removed wrong ban() calls
diff -r 074537180053 -r b1dbe65d3e84 client.c
--- a/client.c Mon Feb 19 11:22:47 2007 +0100
+++ b/client.c Mon Feb 19 11:34:12 2007 +0100
@@ -66,14 +66,6 @@ xerrordummy(Display *dsply, XErrorEvent
}
/* 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) {
diff -r 074537180053 -r b1dbe65d3e84 event.c
--- a/event.c Mon Feb 19 11:22:47 2007 +0100
+++ b/event.c Mon Feb 19 11:34:12 2007 +0100
@@ -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);
Received on Mon Feb 19 2007 - 11:37:47 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:27 UTC