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

XCB: QGuiApplication::primaryScreen() always last screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.3
    • Fix Version/s: 6.3.0 Alpha, 6.4.0 Beta1
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Environment:
      deepin
    • Platform/s:
      Linux/X11
    • Commits:
      38a66aa53a (qt/qtbase/dev) 38a66aa53a (qt/tqtc-qtbase/dev) a318de3f40 (qt/qtbase/6.3) a318de3f40 (qt/tqtc-qtbase/6.3)

      Description

      since  "xcb: convert last screen to fake when no screen" d8f37d94e537aaab4fa960b80aacabe79bcc14c4 https://codereview.qt-project.org/c/qt/qtbase/+/371170 committed,QGuiApplication::primaryScreen() always return last screen.

      see https://github.com/qt/qtbase/blob/d8f37d94e537aaab4fa960b80aacabe79bcc14c4/src/plugins/platforms/xcb/qxcbconnection_screens.cpp#L537-L540

      xcbScreenNumber always equal to primaryScreenNumber(), so every primaryScreen will setPrimary(true)

        Attachments

        1. screen.mp4
          2.59 MB
        2. screen.zip
          6 kB

          Issue Links

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

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              kingderzhang kingderzhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes