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 =
|
const MetaOutputInfo *output_info =
|
||||||
meta_monitor_get_main_output_info (monitor);
|
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)
|
if (output_info->suggested_x < 0 && output_info->suggested_y < 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user