diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-20 17:17:37 +0300 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-07-20 18:52:18 +0300 |
| commit | 335731ae671f51a10b426ba57e7ddd4f44c878ff (patch) | |
| tree | b5b92f81115fead1ff559e7b435181775cb7bab5 /monsterwm.c | |
| parent | 24b94d72ba73bf4c4c4cadde3136e5ad1de528af (diff) | |
rework focusin function - use one if statement - minor change
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } /** |
