[mutter/wayland] display: Add some missing breaks
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] display: Add some missing breaks
- Date: Tue, 3 Sep 2013 20:10:21 +0000 (UTC)
commit 97eece6607a44268cdd27525ef588c3fe29f2d55
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 3 15:57:05 2013 -0400
display: Add some missing breaks
If we somehow get an event with a wrong device ID, we should not
be comparing bad event IDs.
src/core/display.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 7d67c2e..7a287b8 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1876,14 +1876,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]