applets/notifications: Trigger action on drag enter only when resting

  • applets/notifications: Trigger action on drag enter only when resting

When dragging a file over a notification, stop the timeout timer. Also only trigger the action when resting over the notification briefly, rather than always triggering the action with a delay.

Reason for the change

I sometimes ended up jumping to a random app when I dragged a screenshot from another notification. This should reduce the likelihood of this happening.

Test plan

Sent a notification with default action, started dragging across a notification. It didn’t trigger the notification anymore.

Merge request reports

Loading