projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b61f913
)
simplified configurerequest to a bare minimum, removed wrong ban() calls
author
Anselm R. Garbe
<arg@suckless.org>
Mon, 19 Feb 2007 10:34:12 +0000
(11:34 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Mon, 19 Feb 2007 10:34:12 +0000
(11:34 +0100)
client.c
patch
|
blob
|
history
event.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index bc26997ff754fa86abee6bd8cff1b95fd0b6e1de..79cd698258cf8daab33f476bfe1de0e876ae6866 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-67,14
+67,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 153b49a0a2eb6bb842758ee7aae690e722f17b59..db3ce46eff6fa9e3cc64a0823c55963aadc6575b 100644
(file)
--- 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);