summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2017-03-22 15:49:53 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2017-03-22 15:49:53 (GMT)
commitffbb25497c3f71c05652617f51e34a1c0a2bbb03 (patch)
treea1f1dbaaf3173388774609e0703a121e12063e1a
parent3836e048810e64c787f56b5512262129da6df8c5 (diff)
[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
-rw-r--r--plugins/kdecorations/aurorae/src/qml/DecorationButton.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/kdecorations/aurorae/src/qml/DecorationButton.qml b/plugins/kdecorations/aurorae/src/qml/DecorationButton.qml
index 6c295d0..32d6990 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