From: Michael Stapelberg Date: Tue, 10 Mar 2009 10:26:52 +0000 (+0100) Subject: Ignore notify events which are not in mode XCB_NOTIFY_MODE_NORMAL X-Git-Tag: 3.a~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=434345aa304f2820be28c6e04f23bf029c7973fb;p=i3%2Fi3 Ignore notify events which are not in mode XCB_NOTIFY_MODE_NORMAL --- diff --git a/src/handlers.c b/src/handlers.c index 8fffcbe1..7475cd8f 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -128,6 +128,10 @@ int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press_event_ */ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_event_t *event) { LOG("enter_notify for %08x, mode = %d, detail %d, serial %d\n", event->event, event->mode, event->detail, event->sequence); + if (event->mode != XCB_NOTIFY_MODE_NORMAL) { + LOG("This was not a normal notify, ignoring\n"); + return 1; + } /* Some events are not interesting, because they were not generated actively by the user, but be reconfiguration of windows */ if (event_is_ignored(event->sequence))