summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.c b/client.c
index f2cd802..7ccad39 100644
--- a/client.c
+++ b/client.c
@@ -95,7 +95,7 @@ focus(Client *c) {
95 drawstatus(); 95 drawstatus();
96 if(!activescreen) 96 if(!activescreen)
97 return; 97 return;
98 if(sel) { 98 if(c) {
99 XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); 99 XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
100 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); 100 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
101 } 101 }
@@ -157,6 +157,7 @@ manage(Window w, XWindowAttributes *wa) {
157 StructureNotifyMask | PropertyChangeMask | EnterWindowMask); 157 StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
158 XGetTransientForHint(dpy, c->win, &trans); 158 XGetTransientForHint(dpy, c->win, &trans);
159 grabbuttons(c, False); 159 grabbuttons(c, False);
160 XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
160 updatetitle(c); 161 updatetitle(c);
161 settags(c, getclient(trans)); 162 settags(c, getclient(trans));
162 if(!c->isfloat) 163 if(!c->isfloat)