aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-12 22:43:29 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-01-12 22:43:29 +0200
commit46eccfb0e750e455e24e045b6ea7769f6a64dbef (patch)
tree82a53404783c64a389991a3de8f80779194964e2 /monsterwm.c
parent998e8e71ba8a69ac3c47db47521aa769a091cb34 (diff)
if FOLLOW_MOUSE is not set don't bother with enternotify
Diffstat (limited to 'monsterwm.c')
-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();
}