1
0
Fork 0

display: Fix checks for KeyPress/ButtonPress

This commit is contained in:
Jasper St. Pierre 2013-12-06 00:51:13 -05:00
parent 3283018bfb
commit 62b884dd42

View file

@ -2292,7 +2292,7 @@ event_callback (XEvent *event,
XIEnterEvent *enter_event = (XIEnterEvent *) input_event;
if (window && !window->override_redirect &&
((input_event->type == XI_KeyPress) || (input_event->type == XI_ButtonPress)))
((input_event->evtype == XI_KeyPress) || (input_event->evtype == XI_ButtonPress)))
{
if (CurrentTime == display->current_time)
{