Bug 450028

Summary: Cursor state leak? Keeps dragging icon after releasing mouse button
Product: [Plasma] plasmashell Reporter: php4fan
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: minor CC: nate, plasma-bugs-null, qydwhotmail
Priority: NOR    
Version First Reported In: 5.24.0   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description php4fan 2022-02-11 17:39:03 UTC
STEPS TO REPRODUCE

1. Accidentally click on an application icon in the bottom bar very quickly as you move the mouse

Sometimes I click for example on Google Chrome's icon (or any other application that I have in the bar at the bottom of the screen, which I believe is called the Task Manager), and occasionally it happens that my intention is to click and then move the mouse away, but I do it so quickly that, I guess, between the moment I press the mouse button and the moment I release it, I also move the mouse.

(note: I'll describe expected result first and then observed result, it's more convenient in this case)

EXPECTED RESULT

It doesn't matter how much I move (accidentally in my case) the mouse cursor between the moment I pressed and the moment I release, and it doesn't matter whether I release it while still in the task manager or outside. If I drop the icon while still in the task bar, I may move it within the task manager, i.e. I'll rearrange the order of the icons. If I drop it outside of the task manager, in most cases if not all, I'll be dropping it in a forbidden area so nothing will happen. If I happen to drop it somewhere where it makes sense, whatever will happen will happen, whether it was my intention or not, but in ALL cases, after that, I will no longer be carrying around the icon with the mouse cursor.

There is NO POSSIBLE SCENARIO where it can be expected that, after releasing the mouse button, I can still be carrying around the icon.

OBSERVED RESULT

Every once in a while it happens to me that after doing the above-mentioned action, the icon will remain attached to the mouse cursor long after I have released it, and I will keep unwilling dragging it around. If I remember correctly, hitting the Esc key doesn't get rid of it (which, by the way, it should, even if I still had the button press. Esc should always cancel). I think I managed to get the icon unstack by clicking again in the task manager.

I cannot reproduce at will. This must be something that happens very rarely. In only happens to me accidentally, but has happened more than once.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220207
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7.3 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics
Comment 1 Fushan Wen 2022-12-03 10:57:34 UTC
Should be fixed in 5.27