--- a/client.c Tue Jan 23 12:29:17 2007 +0100
+++ b/client.c Tue Jan 23 13:10:35 2007 +0100
@@ -95,7 +95,7 @@
drawstatus();
if(!activescreen)
return;
- if(sel) {
+ if(c) {
XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
}
@@ -157,6 +157,7 @@
StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
XGetTransientForHint(dpy, c->win, &trans);
grabbuttons(c, False);
+ XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
updatetitle(c);
settags(c, getclient(trans));
if(!c->isfloat)