From eaa44eb88f974ea6cb13d21a1cb2618131d7e1b9 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 5 Jul 2022 17:22:17 +0200 Subject: [PATCH] [Notifications] Don't invoke default action on drag if we're dragging Otherwise dragging a screenshot off a notification will immediately trigger the default action. --- applets/notifications/package/contents/ui/NotificationPopup.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/notifications/package/contents/ui/NotificationPopup.qml b/applets/notifications/package/contents/ui/NotificationPopup.qml index 1e0ad1408..8be35215f 100644 --- a/applets/notifications/package/contents/ui/NotificationPopup.qml +++ b/applets/notifications/package/contents/ui/NotificationPopup.qml @@ -117,7 +117,7 @@ PlasmaCore.Dialog { DropArea { anchors.fill: parent onEntered: { - if (notificationPopup.hasDefaultAction) { + if (notificationPopup.hasDefaultAction && !notificationItem.dragging) { dragActivationTimer.start(); } else { drag.accepted = false;