aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--monsterwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 26f72d3..77f143f 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -272,9 +272,10 @@ void die(const char *errstr, ...) {
}
void enternotify(XEvent *e) {
+ if (!FOLLOW_MOUSE) return;
client *c = wintoclient(e->xcrossing.window);
if (!c) return;
- if (FOLLOW_MOUSE && e->xcrossing.mode == NotifyNormal && e->xcrossing.detail != NotifyInferior) current = c;
+ if (e->xcrossing.mode == NotifyNormal && e->xcrossing.detail != NotifyInferior) current = c;
update_current();
}