summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-09-03 15:57:05 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-09-03 16:08:55 -0400
commit5aa3a288dcdb90e70091768483812d67aad3a8e7 (patch)
treeeb985b1d1b8bd57ce0e19c9fba13c6f93d03e205
parentddf566a3c4b5c4a24b5c01a06e8be4ad84385705 (diff)
downloadmutter-5aa3a288dcdb90e70091768483812d67aad3a8e7.tar.gz
display: Add some missing breaks
If we somehow get an event with a wrong device ID, we should not be comparing bad event IDs.
-rw-r--r--src/core/display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 3f3a45f74..755b97034 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1855,14 +1855,17 @@ get_input_event (MetaDisplay *display,
case XI_ButtonRelease:
if (((XIDeviceEvent *) input_event)->deviceid == META_VIRTUAL_CORE_POINTER_ID)
return input_event;
+ break;
case XI_KeyPress:
case XI_KeyRelease:
if (((XIDeviceEvent *) input_event)->deviceid == META_VIRTUAL_CORE_KEYBOARD_ID)
return input_event;
+ break;
case XI_FocusIn:
case XI_FocusOut:
if (((XIEnterEvent *) input_event)->deviceid == META_VIRTUAL_CORE_KEYBOARD_ID)
return input_event;
+ break;
case XI_Enter:
case XI_Leave:
if (((XIEnterEvent *) input_event)->deviceid == META_VIRTUAL_CORE_POINTER_ID)