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
This commit is contained in:
Jonas Ådahl 2019-08-16 16:29:22 +02:00
parent 638b315e40
commit 16cb918e0d

View File

@ -614,11 +614,12 @@ static void
sync_input_region (ShellGlobal *global) sync_input_region (ShellGlobal *global)
{ {
MetaDisplay *display = global->meta_display; MetaDisplay *display = global->meta_display;
MetaX11Display *x11_display = meta_display_get_x11_display (display);
if (global->has_modal) if (global->has_modal)
meta_set_stage_input_region (display, None); meta_x11_display_set_stage_input_region (x11_display, None);
else else
meta_set_stage_input_region (display, global->input_region); meta_x11_display_set_stage_input_region (x11_display, global->input_region);
} }
/** /**