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...
This commit is contained in:
Carlos Garnacho 2017-12-06 12:52:19 +01:00
parent 62c9713361
commit f08417b618

View File

@ -645,7 +645,8 @@ default_grab_key (MetaWaylandKeyboardGrab *grab,
/* Synthetic key events are for autorepeat. Ignore those, as /* Synthetic key events are for autorepeat. Ignore those, as
* autorepeat in Wayland is done on the client side. */ * autorepeat in Wayland is done on the client side. */
if (event->key.flags & CLUTTER_EVENT_FLAG_SYNTHETIC) if ((event->key.flags & CLUTTER_EVENT_FLAG_SYNTHETIC) &&
!(event->key.flags & CLUTTER_EVENT_FLAG_INPUT_METHOD))
return FALSE; return FALSE;
#ifdef HAVE_NATIVE_BACKEND #ifdef HAVE_NATIVE_BACKEND
@ -788,7 +789,8 @@ meta_wayland_keyboard_handle_event (MetaWaylandKeyboard *keyboard,
/* Synthetic key events are for autorepeat. Ignore those, as /* Synthetic key events are for autorepeat. Ignore those, as
* autorepeat in Wayland is done on the client side. */ * 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; return FALSE;
meta_verbose ("Handling key %s event code %d\n", meta_verbose ("Handling key %s event code %d\n",