From c462544f7862748dc0f73e62a27b580b1883c68a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 10 Nov 2019 15:50:36 +0000 Subject: [PATCH] output-kms: Fix "panel orientation" kms-prop being ignored on native outputs Actually store the panel_orientation_transform in the meta_output, so that it gets honored by the core code. https://gitlab.gnome.org/GNOME/mutter/merge_requests/927 (cherry picked from commit a5f986259f8e68dbad2f7835d1481840b446408f) --- src/backends/native/meta-output-kms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/native/meta-output-kms.c b/src/backends/native/meta-output-kms.c index 73e4e4c94..84c7d4d7b 100644 --- a/src/backends/native/meta-output-kms.c +++ b/src/backends/native/meta-output-kms.c @@ -295,7 +295,6 @@ meta_create_kms_output (MetaGpuKms *gpu_kms, MetaOutput *output; MetaOutputKms *output_kms; const MetaKmsConnectorState *connector_state; - MetaMonitorTransform panel_orientation_transform; uint32_t connector_id; GArray *crtcs; GList *l; @@ -318,8 +317,9 @@ meta_create_kms_output (MetaGpuKms *gpu_kms, connector_state = meta_kms_connector_get_current_state (kms_connector); - panel_orientation_transform = connector_state->panel_orientation_transform; - if (meta_monitor_transform_is_rotated (panel_orientation_transform)) + output->panel_orientation_transform = + connector_state->panel_orientation_transform; + if (meta_monitor_transform_is_rotated (output->panel_orientation_transform)) { output->width_mm = connector_state->height_mm; output->height_mm = connector_state->width_mm;