diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-01-23 13:10:35 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-23 13:10:35 +0100 |
| commit | c8a12a0852a9befbf5a073910e8b0291914f80ab (patch) | |
| tree | 1ca407e418119e3b9b86704bd0ffe46c4097b3b0 /client.c | |
| parent | small changes (diff) | |
| download | dwm-c8a12a0852a9befbf5a073910e8b0291914f80ab.tar.gz dwm-c8a12a0852a9befbf5a073910e8b0291914f80ab.zip | |
implemented Sanders remarks
Diffstat (limited to '')
| -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) |
