diff --git a/shell/plugins/notifications/components/NotificationCard.qml b/shell/plugins/notifications/components/NotificationCard.qml index f76590f1..70c5b88d 100644 --- a/shell/plugins/notifications/components/NotificationCard.qml +++ b/shell/plugins/notifications/components/NotificationCard.qml @@ -77,7 +77,14 @@ BorderSurface { MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor - onClicked: root.cardClicked() + acceptedButtons: Qt.LeftButton | Qt.RightButton + onClicked: function(mouse) { + if (mouse.button === Qt.RightButton) { + root.closeRequested() + } else { + root.cardClicked() + } + } } ColumnLayout {