From ab04286c6b800b8741fd7bcb7d56d6248c3dad5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 24 Mar 2017 16:12:51 +0800 Subject: [PATCH] monitor-manager/x11: Don't complain about 'normal' transform The 'normal' transform has the value 0, so the g_warn_if_fail() expression failed. Correct it so that it doesn't complain when no transform is checked. https://bugzilla.gnome.org/show_bug.cgi?id=777732 --- src/backends/x11/meta-monitor-manager-xrandr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/x11/meta-monitor-manager-xrandr.c b/src/backends/x11/meta-monitor-manager-xrandr.c index ed4b841de..73842648f 100644 --- a/src/backends/x11/meta-monitor-manager-xrandr.c +++ b/src/backends/x11/meta-monitor-manager-xrandr.c @@ -1774,7 +1774,7 @@ meta_monitor_manager_xrandr_is_transform_handled (MetaMonitorManager *manager, MetaCrtc *crtc, MetaMonitorTransform transform) { - g_warn_if_fail (crtc->all_transforms & transform); + g_warn_if_fail ((crtc->all_transforms & transform) == transform); return TRUE; }