drop EnterWindow events after a keypress

This commit is contained in:
Julien Danjou 2008-01-17 14:39:48 +01:00
parent 4809b8bc6e
commit bda97fa36d
1 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,7 @@ handle_event_keypress(XEvent * e)
XKeyEvent *ev = &e->xkey; XKeyEvent *ev = &e->xkey;
Window dummy; Window dummy;
Key *k; Key *k;
XEvent event;
keysym = XKeycodeToKeysym(e->xany.display, (KeyCode) ev->keycode, 0); keysym = XKeycodeToKeysym(e->xany.display, (KeyCode) ev->keycode, 0);
@ -306,6 +307,7 @@ handle_event_keypress(XEvent * e)
k->func(screen, k->arg); k->func(screen, k->arg);
break; break;
} }
while(XCheckMaskEvent(globalconf.display, EnterWindowMask, &event));
} }
void void