@@ -176,6 +176,10 @@ Item {
176 // let it fall through to the window decoration of the maximized window behind, if any
176 // let it fall through to the window decoration of the maximized window behind, if any
177 mouse.accepted = false;
177 mouse.accepted = false;
179+ var menubar = menuBarLoader.item;
181+ menubar.invokeMenu(mouse);
@@ -212,7 +216,7 @@ Item {
213 width: parent.width - windowControlButtons.width - units.gu(2) - __indicators.barWidth
217 width: parent.width - windowControlButtons.width - units.gu(2) - __indicators.barWidth
215− property bool menusRequested: menuBarLoader.item ? menuBarLoader.item.showRequested : false
219+ readonly property bool menusRequested: menuBarLoader.item ? menuBarLoader.item.showRequested : false
217 sourceComponent: MenuBar {
221 sourceComponent: MenuBar {
@@ -234,7 +238,7 @@ Item {
236 onDoubleClicked: PanelState.restoreClicked()
240 onDoubleClicked: PanelState.restoreClicked()
237− onPressed: decorationMouseArea.onPressed(mouse)
241+ onPressed: mouse.accepted = false // let the parent mouse area handle this, so it can both unsnap window and show menu