[gnome-shell/wip/carlosg/x11less-preparations: 108/109] shell: Do not set XFixes input region on wayland compositors



commit 8a804220ec37809151b5c2f1e2652a21848a2821
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jan 31 12:02:39 2019 +0100

    shell: Do not set XFixes input region on wayland compositors
    
    This is just needed on the X11 compositor, wayland compositors are known
    for handling their own input.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/378

 js/ui/layout.js    | 3 +--
 src/shell-global.c | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index c25cd474d..fa720097a 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -1046,8 +1046,7 @@ var LayoutManager = GObject.registerClass({
             }
         }
 
-        if (!Meta.is_wayland_compositor())
-            global.set_stage_input_region(rects);
+        global.set_stage_input_region(rects);
         this._isPopupWindowVisible = isPopupMenuVisible;
 
         let workspaceManager = global.workspace_manager;
diff --git a/src/shell-global.c b/src/shell-global.c
index df84b6b0d..8f778c0f1 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -642,6 +642,9 @@ shell_global_set_stage_input_region (ShellGlobal *global,
 
   g_return_if_fail (SHELL_IS_GLOBAL (global));
 
+  if (meta_is_wayland_compositor ())
+    return;
+
   nrects = g_slist_length (rectangles);
   rects = g_new (XRectangle, nrects);
   for (r = rectangles, i = 0; r; r = r->next, i++)


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