[mutter] monitor: Check hotplug update mode before getting suggested x/y
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor: Check hotplug update mode before getting suggested x/y
- Date: Wed, 10 Jun 2020 19:20:51 +0000 (UTC)
commit 574b49ed95e9a7b42745c79e5f58c493aaae8b2e
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Feb 26 16:44:28 2020 +0100
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 63ff64b0f5..bade4d1665 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]