From bda97fa36db3ef4482b50f980e38e80c554c9a0c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 17 Jan 2008 14:39:48 +0100 Subject: [PATCH] drop EnterWindow events after a keypress --- event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event.c b/event.c index 20b60e6e2..3a626ff65 100644 --- a/event.c +++ b/event.c @@ -283,6 +283,7 @@ handle_event_keypress(XEvent * e) XKeyEvent *ev = &e->xkey; Window dummy; Key *k; + XEvent event; keysym = XKeycodeToKeysym(e->xany.display, (KeyCode) ev->keycode, 0); @@ -306,6 +307,7 @@ handle_event_keypress(XEvent * e) k->func(screen, k->arg); break; } + while(XCheckMaskEvent(globalconf.display, EnterWindowMask, &event)); } void