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:
parent
638b315e40
commit
16cb918e0d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user