display: Fix checks for KeyPress/ButtonPress

https://bugzilla.gnome.org/show_bug.cgi?id=720545
This commit is contained in:
Jasper St. Pierre 2013-12-06 00:51:13 -05:00 committed by Owen W. Taylor
parent 01e0eaf1fc
commit 491b17af19

View File

@ -2304,7 +2304,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)
{