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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15, 6.2, 6.5, 6.6, 6.7, 6.8
    • QPA: Wayland
    • None
    • Linux/Wayland

    Description

      GNOME seem to have a special reading of the xdg-output protocol and provides screen pixel size not divided by scale factor unlike all other compositors. To make this even more complicated, they change the behavior to the common one once scale-monitor-framebuffer experimental feature (Ubuntu patches the settings application to present it as fractional scaling option in monitor settings) is enabled. mutter folks seem to defend their reading of the protocol and gtk has fixed this by comparing xdg_output size with wl_output size and dividing the size by scale factor if it's the same.

      https://gitlab.gnome.org/GNOME/mutter/-/issues/2631
      https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6832

      Attachments

        For Gerrit Dashboard: QTBUG-122197
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change