Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5, 6.8, 6.9
-
None
Description
Looks like the fix for QTBUG-122197 didn't fully fix it, the screen geometry still doesn't account for 200% scale but now only with portrait screens (e.g. a screen with resolution 1920x1080, 2x scale and portrait orientation should have resolution reported by QScreen 540x960 but it reports 1080x1920). It seems it's because the mXdgGeometry.size() == mGeometry.size() condition in QWaylandScreen::geometry() doesn't result in true with portrait orientation as wl_output's geometry has to be rotated by client which Qt doesn't do.
This also means the geometry on compositors without xdg-output support using portrait screens has width and height swapped (e.g. a screen with resolution 1920x1080 and portrait orientation should have resolution reported by QScreen 1080x1920 but it reports 1920x1080).