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



commit 58dc7a99f60c303a7901efa05be10ac66a052486
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.

 src/shell-global.c | 3 +++
 1 file changed, 3 insertions(+)
---
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]