--- a/client.c Fri Jun 01 12:11:25 2007 +0200
+++ b/client.c Mon Jun 04 11:37:33 2007 +0200
@@ -216,8 +216,7 @@
c->isfloating = (rettrans == Success) || c->isfixed;
attach(c);
attachstack(c);
- c->isbanned = True;
- XMoveWindow(dpy, w, c->x + 2 * sw, c->y);
+ ban(c);
XMapWindow(dpy, w);
setclientstate(c, NormalState);
focus(c);
--- a/layout.c Fri Jun 01 12:11:25 2007 +0200
+++ b/layout.c Mon Jun 04 11:37:33 2007 +0200
@@ -88,9 +88,7 @@
for(c = clients; c; c = c->next)
if(isvisible(c)) {
- if(c->isbanned)
- XMoveWindow(dpy, c->win, c->x, c->y);
- c->isbanned = False;
+ unban(c);
resize(c, c->x, c->y, c->w, c->h, True);
}
else
--- a/main.c Fri Jun 01 12:11:25 2007 +0200
+++ b/main.c Mon Jun 04 11:37:33 2007 +0200
@@ -38,8 +38,7 @@
cleanup(void) {
close(STDIN_FILENO);
while(stack) {
- if(stack->isbanned)
- XMoveWindow(dpy, stack->win, stack->x, stack->y);
+ unban(stack);
unmanage(stack);
}
if(dc.font.set)