diff options
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c index a080942..d42dd9c 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -551,9 +551,8 @@ void focus(Client *c, Desktop *d) { * client, by the user, through the wm. */ void focusin(XEvent *e) { - Desktop *d = NULL; Client *c = NULL; - if (wintoclient(e->xfocus.window, &c, &d) && d->curr && - e->xfocus.window != d->curr->win) focus(d->curr, d); + Desktop *d = &desktops[currdeskidx]; + if (d->curr && d->curr->win != e->xfocus.window) focus(d->curr, d); } /** |
