[gnome-flashback] backends: check panel autorotation state before applying autorotation
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] backends: check panel autorotation state before applying autorotation
- Date: Sat, 5 Sep 2020 18:13:11 +0000 (UTC)
commit 93c955f590fcb4fc096a4c9d7c2d038324ca857b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Sep 5 17:30:22 2020 +0300
backends: check panel autorotation state before applying autorotation
So far, we've expected this signal to not happen whenever autorotation
shouldn't apply (no accelerometer is a strong reason). In future commits
we'll add further checks to this policy, so prevent autorotation to
change the display configuration if the MetaOrientationManager signal
happens but it should be ignored.
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/bb0712077a384400f694
backends/gf-monitor-manager.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index ad947b48..a64d0ca9 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -505,6 +505,9 @@ orientation_changed (GfOrientationManager *orientation_manager,
GError *error = NULL;
GfMonitorsConfig *config;
+ if (!manager->panel_orientation_managed)
+ return;
+
switch (gf_orientation_manager_get_orientation (orientation_manager))
{
case GF_ORIENTATION_NORMAL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]