[gnome-flashback] monitor: check hotplug update mode before getting suggested x/y
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor: check hotplug update mode before getting suggested x/y
- Date: Sat, 11 Jul 2020 18:42:44 +0000 (UTC)
commit 40500b06f99a0c4edfb5fa7dd64ac6e3b69b18e5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Jul 10 12:07:27 2020 +0300
monitor: check hotplug update mode before getting suggested x/y
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/574b49ed95e9a7b42745
backends/gf-monitor-normal.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/backends/gf-monitor-normal.c b/backends/gf-monitor-normal.c
index 40440d7..c4d97de 100644
--- a/backends/gf-monitor-normal.c
+++ b/backends/gf-monitor-normal.c
@@ -138,6 +138,9 @@ gf_monitor_normal_get_suggested_position (GfMonitor *monitor,
output_info = gf_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]