small changes
This commit is contained in:
parent
edb2660a2e
commit
71b84c2114
4 changed files with 11 additions and 9 deletions
10
client.c
10
client.c
|
@ -85,20 +85,22 @@ focus(Client *c) {
|
|||
grabbuttons(sel, False);
|
||||
XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
|
||||
}
|
||||
sel = c;
|
||||
if(!issel)
|
||||
return;
|
||||
if(c) {
|
||||
detachstack(c);
|
||||
c->snext = stack;
|
||||
stack = c;
|
||||
grabbuttons(c, True);
|
||||
}
|
||||
sel = c;
|
||||
drawstatus();
|
||||
if(!activescreen)
|
||||
return;
|
||||
if(sel) {
|
||||
XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
|
||||
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
|
||||
}
|
||||
else
|
||||
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
|
||||
drawstatus();
|
||||
}
|
||||
|
||||
Client *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue