diff --git a/event.c b/event.c index 20b60e6e..3a626ff6 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