quickshell: open tray menu on left-click too
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
155d9fa795
commit
917d983861
1 changed files with 1 additions and 1 deletions
|
|
@ -881,7 +881,7 @@ in
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onClicked: (event) => {
|
onClicked: (event) => {
|
||||||
if (event.button === Qt.RightButton && modelData.hasMenu) {
|
if (modelData.hasMenu) {
|
||||||
bar.toggleDropdown(contextMenu, function() {
|
bar.toggleDropdown(contextMenu, function() {
|
||||||
let pos = parent.mapToItem(bar.contentItem, parent.width / 2, 0);
|
let pos = parent.mapToItem(bar.contentItem, parent.width / 2, 0);
|
||||||
contextMenu.dropdownX = pos.x;
|
contextMenu.dropdownX = pos.x;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue