From dbf5e38f03f5b2c388f402eda5e432ea9f5ca0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 23 Jul 2021 03:58:51 +0200 Subject: [PATCH] monitor-config-manager: Ignore orientation if it is not managed When creating a configuration taking orientation into account we're using the sensors orientation even if this is currently not used (for example when an accelerator is available, but there's no touch screen). This would cause to have a different behavior when configuration is created and when we're loading a known configuration on startup. So always honor whether the monitor's orientation is managed or not. Part-of: --- src/backends/meta-monitor-config-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/meta-monitor-config-manager.c b/src/backends/meta-monitor-config-manager.c index f905983d5..15972d1f8 100644 --- a/src/backends/meta-monitor-config-manager.c +++ b/src/backends/meta-monitor-config-manager.c @@ -704,7 +704,8 @@ get_monitor_transform (MetaMonitorManager *monitor_manager, MetaOrientationManager *orientation_manager; MetaBackend *backend; - if (!meta_monitor_is_laptop_panel (monitor)) + if (!meta_monitor_is_laptop_panel (monitor) || + !meta_monitor_manager_get_panel_orientation_managed (monitor_manager)) return META_MONITOR_TRANSFORM_NORMAL; backend = meta_monitor_manager_get_backend (monitor_manager);