Some cleanups

I will recheck if these are really cleanups tomorrow. Too much coffein be sure right now.
This commit is contained in:
Enno Boland (tox) 2010-02-16 20:09:26 +01:00
parent e675961957
commit 29bd306474

View File

@ -383,16 +383,13 @@ expose(const XEvent *e) {
void
focus(Client *c) {
if(!clients) {
/* If c, sel and clients are NULL, raise tabbed-win itself */
if(!c && !(c = sel ? sel : clients)) {
XStoreName(dpy, win, "tabbed-"VERSION);
XRaiseWindow(dpy, win);
XSetInputFocus(dpy, win, RevertToPointerRoot, CurrentTime);
return;
}
if(!c)
c = sel ? sel : clients;
if(!c)
return;
resize(c, ww, wh - bh);
XRaiseWindow(dpy, c->win);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);