Skip to content
Commit ce0b8de0 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Set main window as parent of stand-alone popup menus

Stand-alone popup menus are <Menu> elements that are children of the
top-level <gui> element. Their initial parent is nullptr, but if we are
inside a QMainWindow we can use that as the parent. This ensures proper
placement of the menus on wayland (where parents are required in order to
have a transient parent window).

We also drop an old comment which claims popup menus should not have
a parent.

Reviewers: dfaure

Differential Revision: https://phabricator.kde.org/D6045
parent 6218fbe4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment