[mutter/wip/carlosg/centralized-panel-auto-orientation: 2/3] backends: Check panel autorotation state before applying autorotation
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/centralized-panel-auto-orientation: 2/3] backends: Check panel autorotation state before applying autorotation
- Date: Thu, 11 Jun 2020 17:46:31 +0000 (UTC)
commit 402d5861ba253cc06e03e3d6c7733791aa3a0bbd
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 11 19:43:19 2020 +0200
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.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1311
src/backends/meta-monitor-manager.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c
index bddc06808b..ff545da788 100644
--- a/src/backends/meta-monitor-manager.c
+++ b/src/backends/meta-monitor-manager.c
@@ -685,6 +685,9 @@ orientation_changed (MetaOrientationManager *orientation_manager,
GError *error = NULL;
MetaMonitorsConfig *config;
+ if (!manager->panel_orientation_managed)
+ return;
+
switch (meta_orientation_manager_get_orientation (orientation_manager))
{
case META_ORIENTATION_NORMAL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]