From 446bd04b6c5c63b71cd90b8664e5442be43bfaaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Sat, 31 Aug 2019 17:57:32 +0200 Subject: [PATCH] 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 --- src/backends/x11/meta-clutter-backend-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/x11/meta-clutter-backend-x11.c b/src/backends/x11/meta-clutter-backend-x11.c index 8d4b64b03..b6334de8b 100644 --- a/src/backends/x11/meta-clutter-backend-x11.c +++ b/src/backends/x11/meta-clutter-backend-x11.c @@ -129,7 +129,7 @@ meta_clutter_backend_x11_translate_event (ClutterBackend *backend, return TRUE; 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)); if (meta_stage_x11_translate_event (stage_x11, native, event))