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

XCB: QGuiApplication::primaryScreen() always last screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.3.0 Alpha, 6.4.0 Beta1
    • 6.3
    • QPA: X11/XCB
    • None
    • deepin
    • Linux/X11
    • 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.zip
          6 kB
        2. screen.mp4
          2.59 MB

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              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