fixing updatetitle
authoranselm@x200s.config
Sun, 12 Jul 2009 22:34:29 +0100
changeset 1459 a5eecc6d674f
parent 1458 e30739eebeed
child 1460 606761ddf6d6
fixing updatetitle
dwm.c
--- a/dwm.c	Thu Jul 09 21:52:17 2009 +0100
+++ b/dwm.c	Sun Jul 12 22:34:29 2009 +0100
@@ -1052,6 +1052,7 @@
 		die("fatal: could not malloc() %u bytes\n", sizeof(Client));
 	*c = cz;
 	c->win = w;
+	updatetitle(c);
 	if(XGetTransientForHint(dpy, w, &trans))
 		t = wintoclient(trans);
 	if(t) {
@@ -1091,7 +1092,6 @@
 	updatesizehints(c);
 	XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
 	grabbuttons(c, False);
-	updatetitle(c);
 	if(!c->isfloating)
 		c->isfloating = trans != None || c->isfixed;
 	if(c->isfloating)