mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue