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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0, 6.1, 6.3
    • Fix Version/s: None
    • Labels:
    • Environment:
      gnome-shell
      xdg-shell v6

      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
        2. menu.png
          menu.png
          9 kB
        3. Screenshot from 2021-08-31 14-03-03.png
          Screenshot from 2021-08-31 14-03-03.png
          367 kB

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews