diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-12 22:43:29 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-12 22:43:29 +0200 |
| commit | 46eccfb0e750e455e24e045b6ea7769f6a64dbef (patch) | |
| tree | 82a53404783c64a389991a3de8f80779194964e2 | |
| parent | 998e8e71ba8a69ac3c47db47521aa769a091cb34 (diff) | |
if FOLLOW_MOUSE is not set don't bother with enternotify
| -rw-r--r-- | monsterwm.c | 3 |
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(); } |
