~kris/suckless

tabbed

29bd30647436867af934d9f7af964a5ee764caaf — Enno Boland (tox) 16 years ago e675961
Some cleanups
I will recheck if these are really cleanups tomorrow. Too much coffein be sure right now.
1 files changed, 2 insertions(+), 5 deletions(-)

M tabbed.c
M tabbed.c => tabbed.c +2 -5
@@ 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);