mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shell-global: Only sync input region if X11 session
We'd do an early out in the called functions eventually anyway. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/682
This commit is contained in:
parent
a20b8dc1ad
commit
638b315e40
1 changed files with 4 additions and 2 deletions
|
|
@ -937,7 +937,8 @@ shell_global_begin_modal (ShellGlobal *global,
|
|||
return FALSE;
|
||||
|
||||
global->has_modal = meta_plugin_begin_modal (global->plugin, options, timestamp);
|
||||
sync_input_region (global);
|
||||
if (!meta_is_wayland_compositor ())
|
||||
sync_input_region (global);
|
||||
return global->has_modal;
|
||||
}
|
||||
|
||||
|
|
@ -967,7 +968,8 @@ shell_global_end_modal (ShellGlobal *global,
|
|||
meta_display_focus_default_window (global->meta_display,
|
||||
get_current_time_maybe_roundtrip (global));
|
||||
|
||||
sync_input_region (global);
|
||||
if (!meta_is_wayland_compositor ())
|
||||
sync_input_region (global);
|
||||
}
|
||||
|
||||
/* Code to close all file descriptors before we exec; copied from gspawn.c in GLib.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue