From 7e3a780dcdabaff6ff94fddec7995681029b2f9a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 17 Sep 2017 16:21:46 +0200 Subject: [PATCH] monitor-config-manager-kms: Fix is_transform_handled meta_monitor_manager_kms_is_transform_handled should checked the transform passed as function argument, not the current crtc transform. https://bugzilla.gnome.org/show_bug.cgi?id=787836 --- src/backends/native/meta-monitor-manager-kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c index 6507e51e2..23a79aedc 100644 --- a/src/backends/native/meta-monitor-manager-kms.c +++ b/src/backends/native/meta-monitor-manager-kms.c @@ -1782,7 +1782,7 @@ meta_monitor_manager_kms_is_transform_handled (MetaMonitorManager *manager, { MetaCrtcKms *crtc_kms = crtc->driver_private; - if ((1 << crtc->transform) & crtc_kms->all_hw_transforms) + if ((1 << transform) & crtc_kms->all_hw_transforms) return TRUE; else return FALSE;