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



commit eefd11061abf66972fcd0a6027432116e4e6942e
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/active grabs if the compositor is a wayland
    one, but this condition was inverted.

 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 c707cb824..d2599adf4 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]