Bug 501585 - After dragging and dropping an icon in the Favorites menu to a new position, moving the mouse pointer/cursor launches that application
Summary: After dragging and dropping an icon in the Favorites menu to a new position, ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (other bugs)
Version First Reported In: 6.3.3
Platform: Fedora RPMs Linux
: VHI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 501940 502101 502996 503141 503659 503775 503911 503941 503949 504797 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-16 15:50 UTC by S. Christian Collins
Modified: 2025-05-26 07:34 UTC (History)
18 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Christian Collins 2025-03-16 15:50:14 UTC
SUMMARY
If I try to move a favorites icon by clicking and dragging it to a new position in the menu, the application is launched after I release the button and move the mouse cursor away from the icon. This is a pretty recent regression.

STEPS TO REPRODUCE
1. Click and drag a favorites icon to a new position and release the mouse button.
2. Move the mouse cursor.

OBSERVED RESULT
As soon as the mouse cursor moves in step 2 above, the application is launched.

EXPECTED RESULT
The application should not be launched.

WORKAROUND
After dragging an icon to its new position, release the mouse button but don't move the mouse cursor. Then press Esc, and the app won't launch.

SOFTWARE/OS VERSIONS
Linux: Fedora Linux Plasma Desktop Edition 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-03-17 19:16:07 UTC
I can't reproduce this also on Fedora 41, but with all KDE software from git master.
Comment 2 John Kizer 2025-03-18 01:44:41 UTC
I can reproduce this on my Fedora KDE 41 device, and on a KDE Neon (User Edition) VM, with both the grid and list arrangements.
Comment 3 duha.bugs 2025-03-24 16:40:20 UTC
*** Bug 501940 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2025-03-28 22:52:30 UTC
*** Bug 502101 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2025-03-28 22:57:09 UTC
I just managed to reproduce this in a slightly different way on my system:

1. Drag app in the grid
2. Release mouse button
3. Move pointer somewhere else that's *not* over an app icon
4. Click

At this point, the dragged app launches.
Comment 6 cwo 2025-04-01 19:41:04 UTC
I can consistently trigger this on master. Dragging then releasing the mouse button over an icon activates it, dragging but releasing the mouse button over an empty area does not activate it.

I added some debug statements to all the places where the delegate is activated (that I could find at least, might have missed one). The onTriggered handler of the action associated with the delegate is called, but none of the functions that call trigger on the action (like the onClicked handler or the Accessible.onPressed one etc.). 

If I boldly store the action in a new property instead of the ItemDelegate's action property, it seems to work as expected (but that's obviously not a solution).

Might be an issue with ItemDelegate/AbstractButton triggering its action on drag&drop when it shouldn't.
Comment 7 Noah Davis 2025-04-14 18:08:58 UTC
> Might be an issue with ItemDelegate/AbstractButton triggering its action on drag&drop when it shouldn't.

That seems to be the case. Blocking activation while either of the internal DragHandlers are active fixes the problem.
Comment 8 Bug Janitor Service 2025-04-14 18:10:24 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2949
Comment 9 Noah Davis 2025-04-15 21:49:18 UTC
Git commit 9a2235472c2e2ca37203fb961875c8172a529de9 by Noah Davis.
Committed on 15/04/2025 at 21:33.
Pushed by ndavis into branch 'master'.

AbstractKickoffItemDelegate: block action trigger while dragging

M  +2    -1    applets/kickoff/package/contents/ui/AbstractKickoffItemDelegate.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/9a2235472c2e2ca37203fb961875c8172a529de9
Comment 10 John Kizer 2025-04-21 18:45:23 UTC
*** Bug 502996 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2025-04-22 15:41:17 UTC
*** Bug 503141 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2025-05-02 16:03:06 UTC
*** Bug 503659 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2025-05-06 16:15:12 UTC
*** Bug 503775 has been marked as a duplicate of this bug. ***
Comment 14 Nate Graham 2025-05-08 15:18:47 UTC
*** Bug 503911 has been marked as a duplicate of this bug. ***
Comment 15 Nate Graham 2025-05-08 20:52:09 UTC
*** Bug 503941 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2025-05-09 17:07:35 UTC
*** Bug 503949 has been marked as a duplicate of this bug. ***
Comment 17 cwo 2025-05-26 07:08:18 UTC
*** Bug 504797 has been marked as a duplicate of this bug. ***