summaryrefslogtreecommitdiff
path: root/tabbed.c
diff options
context:
space:
mode:
Diffstat (limited to 'tabbed.c')
-rw-r--r--tabbed.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tabbed.c b/tabbed.c
index ac84a18..9698f12 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -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);