diff options
| -rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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) |
