changeset: 135:3a784926911a
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Tue Feb 16 20:09:26 2010 +0100
files: tabbed.c
description:
Some cleanups
I will recheck if these are really cleanups tomorrow. Too much coffein be sure right now.
diff -r a9c90162224b -r 3a784926911a tabbed.c
--- a/tabbed.c Tue Feb 16 19:56:22 2010 +0100
+++ b/tabbed.c Tue Feb 16 20:09:26 2010 +0100
@@ -383,16 +383,13 @@
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);
Received on Tue Feb 16 2010 - 19:09:31 UTC
This archive was generated by hypermail 2.2.0 : Tue Feb 16 2010 - 19:12:06 UTC