don't parent directly as we don't want unwanted deletions.
ensure we have a menu, not parented yet, the container exists,
both the menu and the container's toplevel widget QWindows exist,
then set the transient parent of the qmenu's qwindow to the
container's toplevel widget's qwindow. this fixes positioning in
wayland as the protocol requires every popup menu having a transient parent
Details
Details
- Reviewers
lbeltrame - Commits
- R263:4690808e65f1: use transientparent directly
okular doesn't crash anymore, konsole's bookmarks menu still
correctly positioned in wayland
Diff Detail
Diff Detail
- Repository
- R263 KXmlGui
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.