From 46eccfb0e750e455e24e045b6ea7769f6a64dbef Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 12 Jan 2012 22:43:29 +0200 Subject: if FOLLOW_MOUSE is not set don't bother with enternotify --- monsterwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.3.1