From ffbb25497c3f71c05652617f51e34a1c0a2bbb03 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 22 Mar 2017 16:49:53 +0100 Subject: [PATCH] [Aurorae DecorationButton] Hook up app menu button This makes clicking the application menu button trigger the menu. CHANGELOG: Aurorae window decorations now support global menu button BUG: 375862 FIXED-IN: 5.9.5 Differential Revision: https://phabricator.kde.org/D5130 --- plugins/kdecorations/aurorae/src/qml/DecorationButton.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/kdecorations/aurorae/src/qml/DecorationButton.qml b/plugins/kdecorations/aurorae/src/qml/DecorationButton.qml index 6c295d09a1..32d6990958 100644 --- a/plugins/kdecorations/aurorae/src/qml/DecorationButton.qml +++ b/plugins/kdecorations/aurorae/src/qml/DecorationButton.qml @@ -62,7 +62,8 @@ Item { break; case DecorationOptions.DecorationButtonApplicationMenu: // app menu -// decoration.appMenuClicked(); + var pos = button.mapToItem(null, 0, 0); // null = "map to scene" + decoration.requestShowApplicationMenu(Qt.rect(pos.x, pos.y, button.width, button.height), 0) break; case DecorationOptions.DecorationButtonOnAllDesktops: // all desktops