crtc-xrandr: Compare right coordinate when checking assignment

Compare x with x, and y with y, not y with x.

Fixes an issue where only changing the scale doesn't actually apply the
new scale.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1119
This commit is contained in:
Jonas Ådahl 2020-03-11 11:06:00 +01:00 committed by Georges Basile Stavracas Neto
parent 531a195cf1
commit d2a12ee0fa

View File

@ -195,7 +195,7 @@ meta_crtc_xrandr_is_assignment_changed (MetaCrtc *crtc,
if (crtc_xrandr->rect.x != (int) roundf (crtc_info->layout.origin.x)) if (crtc_xrandr->rect.x != (int) roundf (crtc_info->layout.origin.x))
return TRUE; return TRUE;
if (crtc_xrandr->rect.y != (int) roundf (crtc_info->layout.origin.x)) if (crtc_xrandr->rect.y != (int) roundf (crtc_info->layout.origin.y))
return TRUE; return TRUE;
if (crtc_xrandr->transform != crtc_info->transform) if (crtc_xrandr->transform != crtc_info->transform)