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;
|
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
|
||||||
|
|
Loading…
Reference in New Issue