clutter-backend-x11: Don't push keymap events to clutter

Xkb events should be handled by clutter backend but they are not translated
into an actual clutter event. However we're now handling them and also trying
to push an empty event to clutter queue, causing a critical error.

So in such case, just handle the native event but don't push the non-populated
clutter-event to the queue.

Fixes https://gitlab.gnome.org/GNOME/mutter/issues/750
https://gitlab.gnome.org/GNOME/mutter/merge_requests/764
This commit is contained in:
Marco Trevisan (Treviño) 2019-08-31 17:57:32 +02:00 committed by Carlos Garnacho
parent 9234fcb624
commit 446bd04b6c

View File

@ -129,7 +129,7 @@ meta_clutter_backend_x11_translate_event (ClutterBackend *backend,
return TRUE; return TRUE;
if (meta_keymap_x11_handle_event (backend_x11->keymap, native)) if (meta_keymap_x11_handle_event (backend_x11->keymap, native))
return TRUE; return FALSE;
stage_x11 = META_STAGE_X11 (clutter_backend_get_stage_window (backend)); stage_x11 = META_STAGE_X11 (clutter_backend_get_stage_window (backend));
if (meta_stage_x11_translate_event (stage_x11, native, event)) if (meta_stage_x11_translate_event (stage_x11, native, event))