mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
monitor: Check hotplug update mode before getting suggested x/y
Without it being TRUE, the suggested x/y has no meaning. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:
parent
6697b0d069
commit
574b49ed95
@ -716,6 +716,9 @@ meta_monitor_normal_get_suggested_position (MetaMonitor *monitor,
|
||||
const MetaOutputInfo *output_info =
|
||||
meta_monitor_get_main_output_info (monitor);
|
||||
|
||||
if (!output_info->hotplug_mode_update)
|
||||
return FALSE;
|
||||
|
||||
if (output_info->suggested_x < 0 && output_info->suggested_y < 0)
|
||||
return FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user