[mutter/wip/carlosg/text-input: 7/8] wayland: Let IM-processed key events go through MetaWaylandKeyboard



commit b89333ece1de64a6c44880cfc4c717bc865583a1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Dec 6 12:52:19 2017 +0100

    wayland: Let IM-processed key events go through MetaWaylandKeyboard
    
    Those have the "synthetic" flag as set by Clutter guts, but should be
    processed anyway. Perhaps a "key-repeat" flat would make sense...

 src/wayland/meta-wayland-keyboard.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index c069df8..4250a8a 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -784,7 +784,8 @@ meta_wayland_keyboard_handle_event (MetaWaylandKeyboard *keyboard,
 
   /* Synthetic key events are for autorepeat. Ignore those, as
    * autorepeat in Wayland is done on the client side. */
-  if (event->flags & CLUTTER_EVENT_FLAG_SYNTHETIC)
+  if ((event->flags & CLUTTER_EVENT_FLAG_SYNTHETIC) &&
+      !(event->flags & CLUTTER_EVENT_FLAG_INPUT_METHOD))
     return FALSE;
 
   meta_verbose ("Handling key %s event code %d\n",


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