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

[Wayland] QMenus created without a parent, but later given one remain top level windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.0.0
    • QPA: Wayland
    • None

    Description

      It seems that if a QWidget is created as a top level widget, then currently thats how the compositor will treat it. This means in weston that if you create a menu this way:

          QMenu *fileMenu = menuBar()->addMenu("File");
      

      Menu's work as expected
      However if you create a menu this way:

          QMenu *fileMenu = new QMenu("File");
          menuBar()->addMenu(fileMenu);
      

      Then the compositor will give each menu a random position on the desktop.

      We need to make sure to change the wl_shell_surface from a top-level to a transient or popup as appropriate.

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes