[mutter/wip/carlosg/fix-keybindings-x11] core: Exit early on keybindings if this is a wayland compositor



commit 08c6b801d238e4b99cf74c65a4a1eada74a39581
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Aug 9 11:24:01 2019 +0200

    core: Exit early on keybindings if this is a wayland compositor
    
    Fixes a thinko in commit 79b5ece2. It is meant to bail out early
    on issuing X11 passive grabs if the compositor is a wayland one,
    but this condition was inverted.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/721

 src/core/keybindings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index c707cb8245..d2599adf49 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1570,7 +1570,7 @@ meta_window_grab_keys (MetaWindow  *window)
   MetaDisplay *display = window->display;
   MetaKeyBindingManager *keys = &display->key_binding_manager;
 
-  if (!meta_is_wayland_compositor ())
+  if (meta_is_wayland_compositor ())
     return;
   if (window->all_keys_grabbed)
     return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]