Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-12pba
comparison client.c @ 14:09e9101ee51e
adjust inverse border color
author | paulo |
---|---|
date | Thu, 05 May 2016 22:17:52 -0700 |
parents | 0968b3739b8d |
children |
comparison
equal
deleted
inserted
replaced
2:90be6b144229 | 3:268ad45eeefd |
---|---|
162 sel = c; | 162 sel = c; |
163 drawstatus(); | 163 drawstatus(); |
164 if(!selscreen) | 164 if(!selscreen) |
165 return; | 165 return; |
166 if(c) { | 166 if(c) { |
167 XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]); | 167 XSetWindowBorder(dpy, c->win, (getkeymode() == COMMANDMODE) ? dc.inv[ColBorder] : dc.sel[ColBorder]); |
168 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); | 168 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
169 } | 169 } |
170 else | 170 else |
171 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); | 171 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); |
172 } | 172 } |