[mutter] monitor-manager/x11: Don't complain about 'normal' transform
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-manager/x11: Don't complain about 'normal' transform
- Date: Mon, 21 Aug 2017 04:46:50 +0000 (UTC)
commit ab04286c6b800b8741fd7bcb7d56d6248c3dad5d
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Mar 24 16:12:51 2017 +0800
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/x11/meta-monitor-manager-xrandr.c b/src/backends/x11/meta-monitor-manager-xrandr.c
index ed4b841..7384264 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]