[mutter/wip/wayland-display: 91/93] [NOT FOR REVIEW] debug stuff



commit 5c0921868b687ea3dc1fee65e5a978b3ea7987cd
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Fri Aug 9 15:07:18 2013 +0200

    [NOT FOR REVIEW] debug stuff

 src/wayland/meta-wayland-keyboard.c |    2 +-
 src/wayland/meta-wayland.c          |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index 70d29b2..4a38b42 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -470,7 +470,7 @@ meta_wayland_keyboard_handle_event (MetaWaylandKeyboard *keyboard,
             goto found;
           }
 
-      g_warning ("unexpected key release event for key 0x%x", evdev_code);
+      g_warning ("unexpected key release event for key 0x%x (%d)", evdev_code, event->keyval);
 
     found:
       (void) 0;
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 5f39794..8b25444 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -1502,6 +1502,14 @@ event_cb (ClutterActor *stage,
       synthesize_motion_event (compositor, event);
       return FALSE;
 
+    case CLUTTER_KEY_PRESS:
+    case CLUTTER_KEY_RELEASE:
+      meta_verbose ("Clutter key event %s for key %d (%d), state %d\n",
+                   event->type == CLUTTER_KEY_PRESS ? "press" : "release",
+                   clutter_event_get_key_symbol (event),
+                   clutter_event_get_key_code (event),
+                   clutter_event_get_state (event));
+
     default:
       return FALSE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]