Skip to content

[41] wayland/surface: Swap 90 and 270 degree transforms

Robert Mader requested to merge rmader/mutter:gnome-40-backport-1055 into gnome-41

Our internal interpretation of output transforms is not in line with the Wayland spec. Wayland describes them as the transform that a compositor will apply to a surface to compensate for the rotation or mirroring of an output device - counter-clockwise.

Mutter in turn interprets it the other way around. One could argue it does the same but clock-wise - or it interprets the transform from the viewpoint of the content, not the device.

In either way, the difference is that 90 and 270 degree values are switched. Thus swap these accordingly when we translate from WL_OUTPUT_TRANSFORM to META_MONITOR_TRANSFORM.

See: https://gitlab.freedesktop.org/wayland/weston/issues/99 Part-of: !1055 (merged)

(cherry picked from commit 8d9bbe10)

Edited by Robert Mader

Merge request reports