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

many applications have misplaced popup menus under wayland

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes