[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
This commit is contained in:
parent
3836e04881
commit
ffbb25497c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue