mutter in GNOME 41 does not apply rotation to xdg-output anymore
Affected version
- Fedora 35
- mutter 41
- Wayland
Bug summary
With GNOME 41, rotating an output is not reflected anymore in Xwayland.
Steps to reproduce
- Log in GNOME 41
- Settings → Displays → Change orientation of the display
- Run
xrandr -q
What happened
The reported screen size is not rotated
What did you expect to happen
The reported screen size is rotated
Relevant logs, screenshots, screencasts etc.
This was first reported downstream against Xwayland in https://bugzilla.redhat.com/show_bug.cgi?id=2012083, and I filed this issue upstream as https://gitlab.freedesktop.org/xorg/xserver/-/issues/1228
However, it turns out Xwayland
is behaving correctly here, the size of the output as reported by xdg-output
should be rotated and mutter does not do that anymore in GNOME 41.
This is actually a regression in 41 sicne the same worked fine in GNOME 40.
A quick bisection gives:
f7c34507dbfc787d3d1b76d4ca75583e47a832c is the first bad commit
commit bf7c34507dbfc787d3d1b76d4ca75583e47a832c
Author: Jonas Ådahl <jadahl@gmail.com>
Date: Fri Feb 5 17:22:30 2021 +0100
wayland/output: Make each wl_output correspond to one monitor
This is more in line with the protocol, and allows us to remove some
awkward code that tries to "combine" different metadata from different
monitors into one, which sometimes meant picking an arbitrary "main"
monitor, or "and" metadata together to find a common ground.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1712>
src/wayland/meta-wayland-outputs.c | 185 +++++++++++++++----------------------
src/wayland/meta-wayland.c | 5 +-
2 files changed, 76 insertions(+), 114 deletions(-)
From !1712 (merged)
CC: @jadahl