Commit e932b113 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix context menu position on Wayland

On Wayland popup menus without a parent won't have a transient parent
window, which is required to show the menu in the right position.

The context menu in the archiveview is created by kxmlgui, without a
parent because it was a top-level <Menu> tag. If we define it as child
of the <MainWindow> tag, we ensure that the main window will be used as
parent of the menu.
parent be45a3a8
<!DOCTYPE kpartgui>
<kpartgui name="ark_part" version="17" translationDomain="ark">
<kpartgui name="ark_part" version="18" translationDomain="ark">
<MenuBar>
<Menu name="archive">
<text>&amp;Archive</text>
......@@ -40,19 +40,21 @@
<Action name="add"/>
<Action name="delete"/>
</ToolBar>
<Menu name="context_menu">
<Action name="preview"/>
<Action name="openfile"/>
<Action name="openfilewith"/>
<Separator/>
<Action name="rename"/>
<Action name="delete"/>
<Action name="extract"/>
<Separator/>
<Action name="cut"/>
<Action name="copy"/>
<Action name="paste"/>
<Separator/>
<Action name="add"/>
</Menu>
<MainWindow>
<Menu name="context_menu">
<Action name="preview"/>
<Action name="openfile"/>
<Action name="openfilewith"/>
<Separator/>
<Action name="rename"/>
<Action name="delete"/>
<Action name="extract"/>
<Separator/>
<Action name="cut"/>
<Action name="copy"/>
<Action name="paste"/>
<Separator/>
<Action name="add"/>
</Menu>
</MainWindow>
</kpartgui>
Markdown is supported
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