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

many applications have misplaced popup menus under wayland

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9.2
    • 5.9.0 Beta 4, 5.9.1
    • QPA: Wayland
    • None

      it's possible to create qmenus that don't have a parent, tough if a qmenu is created without a parent and a qaction belonging to another qmenu has setMenu calledon this one, visually one menu should be transientparent of the other, but this doesn't happen unless specified explicitly. in wayland the menu will be mispositioned as wl_shell requires menus to have a transientparent.

      the assignemnt of transientparent (tough not parent()) should be done automatically for hyerarchies like that.

      many existing applications are affected by this

       

      attached a minimal example app that shows the problem

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

            johanhelsing Johan Helsing
            mart Marco
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes