implemented Sanders remarks
c8a12a08
1 file(s) · +2 −1
| 95 | 95 | drawstatus(); |
|
| 96 | 96 | if(!activescreen) |
|
| 97 | 97 | return; |
|
| 98 | - | if(sel) { |
|
| 98 | + | if(c) { |
|
| 99 | 99 | XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); |
|
| 100 | 100 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
|
| 101 | 101 | } |
|
| 157 | 157 | StructureNotifyMask | PropertyChangeMask | EnterWindowMask); |
|
| 158 | 158 | XGetTransientForHint(dpy, c->win, &trans); |
|
| 159 | 159 | grabbuttons(c, False); |
|
| 160 | + | XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); |
|
| 160 | 161 | updatetitle(c); |
|
| 161 | 162 | settags(c, getclient(trans)); |
|
| 162 | 163 | if(!c->isfloat) |
|