[gnome-flashback] monitor-manager: only manage orientation if we have a built in panel
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-manager: only manage orientation if we have a built in panel
- Date: Sat, 23 Oct 2021 18:48:44 +0000 (UTC)
commit fe9f5fb7efcc3f87cd22a5800009e131f02dd81e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 12 23:26:00 2021 +0300
monitor-manager: only manage orientation if we have a built in panel
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/e976137d9780
backends/gf-monitor-manager.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index dee146f..b5ba560 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -664,7 +664,8 @@ update_panel_orientation_managed (GfMonitorManager *self)
priv = gf_monitor_manager_get_instance_private (self);
orientation_manager = gf_backend_get_orientation_manager (priv->backend);
- panel_orientation_managed = gf_orientation_manager_has_accelerometer (orientation_manager);
+ panel_orientation_managed = gf_orientation_manager_has_accelerometer (orientation_manager) &&
+ gf_monitor_manager_get_laptop_panel (self);
if (self->panel_orientation_managed == panel_orientation_managed)
return;
@@ -1187,6 +1188,8 @@ rebuild_monitors (GfMonitorManager *manager)
}
}
}
+
+ update_panel_orientation_managed (manager);
}
static GList *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]