summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-07-31 18:22:13 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-07-31 18:22:13 +0200
commit28c10330bd2e1830005602efe79db9218dbe9dc9 (patch)
tree8dae6f6df79ec2349b9977bef336155bd444056d /client.c
parentfoo (diff)
downloaddwm-28c10330bd2e1830005602efe79db9218dbe9dc9.tar.gz
dwm-28c10330bd2e1830005602efe79db9218dbe9dc9.zip
changed the fix of yesterday, the resize should only be necessary at manage() time, not on any unban()
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index b741a7e..d4dfe6e 100644
--- a/client.c
+++ b/client.c
@@ -226,6 +226,7 @@ manage(Window w, XWindowAttributes *wa) {
226 c->isfloating = (rettrans == Success) || c->isfixed; 226 c->isfloating = (rettrans == Success) || c->isfixed;
227 attach(c); 227 attach(c);
228 attachstack(c); 228 attachstack(c);
229 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
229 setclientstate(c, IconicState); 230 setclientstate(c, IconicState);
230 c->isbanned = True; 231 c->isbanned = True;
231 focus(c); 232 focus(c);
@@ -311,7 +312,6 @@ void
311unban(Client *c) { 312unban(Client *c) {
312 if(!c->isbanned) 313 if(!c->isbanned)
313 return; 314 return;
314 XMoveWindow(dpy, c->win, c->x, c->y); /* some windows require this */
315 XMapWindow(dpy, c->win); 315 XMapWindow(dpy, c->win);
316 setclientstate(c, NormalState); 316 setclientstate(c, NormalState);
317 c->isbanned = False; 317 c->isbanned = False;