Bug 2012083 - Xwayland gets wrong rootwindow size for portrait monitors.
Summary: Xwayland gets wrong rootwindow size for portrait monitors.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mutter
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Müllner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-08 08:24 UTC by Alexander Larsson
Modified: 2022-12-13 15:39 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-13 15:39:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME mutter issues 1964 0 None None None 2021-10-08 13:16:06 UTC
freedesktop.org Gitlab xorg xserver issues 1228 0 None closed Rotation in mutter is not reported in XRandR with Xwayland 2021-10-08 13:16:39 UTC

Description Alexander Larsson 2021-10-08 08:24:52 UTC
Just upgraded to F35 on a gnome wayland session (with the nouveau driver), and its getting the Xwayland root window size wrong. I have 2 3840x2160 monitors, with the left one in portrait mode and the right in landscape, so the root window should be 6000x3840, but xwininfo -root says:

  Width: 7680
  Height: 2160

Seems like its not taking orientation into account.

Comment 1 Alexander Larsson 2021-10-08 08:25:28 UTC
Note, this is not just a cosmetic issue, as it doesn't allow mouse events outside the root window size.

Comment 2 Alexander Larsson 2021-10-08 08:27:29 UTC
wayland-info says:
interface: 'wl_output',                                  version:  2, name:  4
	x: 2160, y: 757, scale: 2,
	physical_width: 600 mm, physical_height: 340 mm,
	make: 'AOC', model: 'AG271UG',
	subpixel_orientation: unknown, output_transform: normal,
	mode:
		width: 3840 px, height: 2160 px, refresh: 59.996 Hz,
		flags: current preferred
interface: 'wl_output',                                  version:  2, name:  5
	x: 0, y: 0, scale: 2,
	physical_width: 340 mm, physical_height: 600 mm,
	make: 'AOC', model: 'AG271UG',
	subpixel_orientation: unknown, output_transform: normal,
	mode:
		width: 2160 px, height: 3840 px, refresh: 59.996 Hz,
		flags: current preferred
interface: 'zxdg_output_manager_v1',                     version:  3, name:  6
	xdg_output_v1
		output: 4
		name: 'DP-1'
		description: 'AOC 27"'
		logical_x: 2160, logical_y: 757
		logical_width: 3840, logical_height: 2160
	xdg_output_v1
		output: 5
		name: 'DP-2'
		description: 'AOC 27"'
		logical_x: 0, logical_y: 0
		logical_width: 2160, logical_height: 3840

Comment 3 Alexander Larsson 2021-10-08 09:12:49 UTC
As noted by oliver, this only happens when i change the orientation live during the session. It works right if the orientation is set at login.

Comment 4 Alexander Larsson 2021-10-08 09:13:25 UTC
Eh, olivier

Comment 5 Olivier Fourdan 2021-10-08 09:25:12 UTC
This is because of https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/492/diffs?commit_id=da791ed9f

Reverting that commit fixes the issue. The only thing is that commit is already a revert, which itself was a revert of another commit…

https://gitlab.freedesktop.org/xorg/xserver/-/commit/da791ed9f reverts https://gitlab.freedesktop.org/xorg/xserver/-/commit/427f8bc00 which reverts https://gitlab.freedesktop.org/xorg/xserver/-/commit/a05453266 and https://gitlab.freedesktop.org/xorg/xserver/-/commit/ce2dde9e so we may have some discrepancy between compositors here…

Comment 6 Olivier Fourdan 2021-10-08 10:36:07 UTC
I suspect this might a be a regression in mutter GNOME 41, the same seems to work fine in GNOME 40 on Fedora 34.

Comment 7 Olivier Fourdan 2021-10-08 13:16:06 UTC
Confirmed, this is a regression in GNOME 41, moving to mutter.

Comment 8 Ben Cotton 2022-11-29 17:07:58 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Ben Cotton 2022-12-13 15:39:10 UTC
Fedora Linux 35 entered end-of-life (EOL) status on 2022-12-13.

Fedora Linux 35 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.