From 574b49ed95e9a7b42745c79e5f58c493aaae8b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 26 Feb 2020 16:44:28 +0100 Subject: [PATCH] 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 --- src/backends/meta-monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c index 63ff64b0f..bade4d166 100644 --- a/src/backends/meta-monitor.c +++ b/src/backends/meta-monitor.c @@ -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;