mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
62c9713361
commit
f08417b618
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user