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

Submenus positioned relative to main window instead of parent menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.6.0 RC
    • QPA: Wayland
    • None

    Description

      The QMenu and all it's child menus are positioned relative to the main window. If the compositor does not position the menu exactly as Qt expects the sub-menus are off. See attached screenshot for a case in KWin.

      A compositor has a valid interest in positioning a transient surface different than the client indicated through the offset. The client does not know it's own relative position on the output. Thus a relative positioned transient might end up in non-visible area. The compositor applies sanity checks to ensure the content stays visible.

      The sub-menus should be a transient surface for the parent menu. That way the offset could be useful for the Wayland compositor again.

      Attachments

        1. Spectacle.d13179.png
          44 kB
          Martin Gräßlin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mgraesslin Martin Gräßlin
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes