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

Regression in Qt 6.10: QWindow is placed at 0,0 by default, frame is offscreen in Openbox

XMLWordPrintable

    • Linux/X11
    • 2974b3d74 (dev)

      I experienced a regression in Qt 6.10: applications that use QWindow are positioned at the top left corner by default, even if the application does not set its position.

      Before Qt 6.10, these windows had Static gravity with no position specified, so the window manager placed them on the screen as they want. Since Qt 6.10, the windows have Static gravity with USPosition at 0,0, so window managers place the window to the top left corner of the screen. This causes an additional problem in Openbox and IceWM: these window managers don't ensure that the window is within the screen if USPosition is set, and due to Static gravity, the window frame is placed outside of the screen, causing that the window is partially off-screen.

      The problem is caused by this commit:
      https://code.qt.io/cgit/qt/qtbase.git/commit/?id=59d77a0162d92a9993b7bb4c593e88cbb8f8d9c8

      Reverting that commit fixes the problem.

      The problem can be reproduced by running a very basic program: main.c

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

            vestbo Tor Arne Vestbø
            city-busz György Balló
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change