From 434345aa304f2820be28c6e04f23bf029c7973fb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 10 Mar 2009 11:26:52 +0100 Subject: [PATCH] Ignore notify events which are not in mode XCB_NOTIFY_MODE_NORMAL --- src/handlers.c | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.39.5