summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-12-06 00:51:13 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2013-12-16 15:13:25 -0500
commit491b17af194b051dfd6837fcbd17c4e436b63e5b (patch)
treeca9790c7d6622cf436f2df3f4f427611d9edbb14 /src/core
parent01e0eaf1fce5015125a179ea3c27c200941e1b99 (diff)
display: Fix checks for KeyPress/ButtonPress
https://bugzilla.gnome.org/show_bug.cgi?id=720545
Diffstat (limited to 'src/core')
-rw-r--r--src/core/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 70c5e2b7..c44a42ac 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -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)
{