Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134221

QScreen::size is wrong on GNOME Wayland with 200% scaling and portrait orientation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5, 6.8, 6.9
    • QPA: Wayland
    • None
    • Linux/Wayland

    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).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davidedmundson David Edmundson
            ilya-fedin Ilya Fedin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes