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

Some popups (i.e.) menus are misplaced on gnome-shell

    XMLWordPrintable

Details

    • 998af0776002b2c6c4f0ed70ba7e332a8215aa78 (qt/qtbase/6.2) 493a85a9e468874471057910a61e7c54a45eee83 (qt/qtbase/dev)

    Description

      On gnome-shell, in some widget applications, if one menu is opened while another is being closed, it's positioned in the top-left corner instead of the expected position.

      This issue does not occur with the mainwindow or menus examples, but happens with qtcreator. Please add a comment if you know about a simpler example that exposes the issue.

      The issue happens when a QMenu is created without a parent, i.e. QWidget::parentWidget() == nullptr

      There are no such issues on weston or kwin. As far as I know, it only happens on gnome-shell.

      Attachments

        1. main.cpp
          0.6 kB
          Johan Helsing
        2. menu.png
          9 kB
          Robert Löhning
        3. Screenshot from 2021-08-31 14-03-03.png
          367 kB
          Jonas Ådahl

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              johanhelsing Johan Helsing
              Votes:
              9 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes