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

No QGuiApplication::primaryScreenChanged when switching to external output on a laptop

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.15.2
    • 5.8.0 Alpha
    • QPA: X11/XCB
    • None
    • Qt built from source on Linux/X11

    Description

      With a particular multiscreen setup that is used a lot especially in laptops, the following happens:
      if the system is configured to automatically disable the internal display when connecting a external one, so that the laptop continues to use a single screen when the external one is connected, the QScreen * pointer returned by QGuiApplication::primaryScreen() is recycled to represent the new screen (geometry changed signals will be emitted if needed)
      so no QGuiApplication::primaryScreenChanged() signal gets emitted (neither screenAdded/screenRemoved), making impossible for a client application to correctly notice the screen setup actually changed.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            mart Marco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes