From 335731ae671f51a10b426ba57e7ddd4f44c878ff Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Fri, 20 Jul 2012 17:17:37 +0300 Subject: rework focusin function - use one if statement - minor change --- monsterwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'monsterwm.c') diff --git a/monsterwm.c b/monsterwm.c index c586fc2..359d8e7 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -552,8 +552,8 @@ void focusin(XEvent *e) { Desktop *d = NULL; Client *c = NULL; - if (!wintoclient(e->xfocus.window, &c, &d)) return; - else if (d->curr && e->xfocus.window != d->curr->win) focus(d->curr, d); + if (wintoclient(e->xfocus.window, &c, &d) && d->curr && + e->xfocus.window != d->curr->win) focus(d->curr, d); } /** -- cgit v1.3.1