client.c
changeset 760 8ed842c35e8d
parent 757 22dfaeb82491
child 762 140bcd4782d8
--- a/client.c	Wed Feb 14 09:35:48 2007 +0100
+++ b/client.c	Wed Feb 14 14:01:12 2007 +0100
@@ -68,6 +68,14 @@
 /* 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;
 
@@ -190,7 +198,7 @@
 	c->next = clients;
 	c->snext = stack;
 	stack = clients = c;
-	XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
+	ban(c);
 	XMapWindow(dpy, c->win);
 	setclientstate(c, NormalState);
 	if(isvisible(c))