[gnome-shell] shell-global: Set stage input region via MetaX11Display



commit 16cb918e0dcca7e59753f803f4e9b585792cdab1
Author: Jonas Ådahl <jadahl gmail com>
Date:   Fri Aug 16 16:29:22 2019 +0200

    shell-global: Set stage input region via MetaX11Display
    
    The API in mutter changed to set it via MetaX11Display; lets jump on the
    train.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/682

 src/shell-global.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 06f2be2aa4..1556bf03d5 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -614,11 +614,12 @@ static void
 sync_input_region (ShellGlobal *global)
 {
   MetaDisplay *display = global->meta_display;
+  MetaX11Display *x11_display = meta_display_get_x11_display (display);
 
   if (global->has_modal)
-    meta_set_stage_input_region (display, None);
+    meta_x11_display_set_stage_input_region (x11_display, None);
   else
-    meta_set_stage_input_region (display, global->input_region);
+    meta_x11_display_set_stage_input_region (x11_display, global->input_region);
 }
 
 /**


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