drop EnterWindow events after a keypress
This commit is contained in:
parent
4809b8bc6e
commit
bda97fa36d
2
event.c
2
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
|
||||
|
|
Loading…
Reference in New Issue