From 2a182b91fbd527bd1565824cce5135c461900610 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 3 Mar 2023 20:49:12 +0100 Subject: [PATCH] core: Sync after issuing key/button passive grabs Try to collect any possible errors in place, instead of maybe delegating asynchronous errors to maybe another error handler. Part-of: --- src/core/keybindings.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/keybindings.c b/src/core/keybindings.c index 64a5d6071..9873c1c73 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -1213,6 +1213,8 @@ meta_change_button_grab (MetaKeyBindingManager *keys, META_VIRTUAL_CORE_POINTER_ID, button, xwindow, mods->len, (XIGrabModifiers *)mods->data); + XSync (xdisplay, False); + meta_clutter_x11_untrap_x_errors (); g_array_free (mods, TRUE); @@ -1459,6 +1461,8 @@ meta_change_keygrab (MetaKeyBindingManager *keys, mods->len, (XIGrabModifiers *)mods->data); } + XSync (xdisplay, False); + meta_clutter_x11_untrap_x_errors (); g_array_free (mods, TRUE);