Bug 489794

Summary: Wrong icon moves when rearranging by drag and drop in Icon-Only Task Manager
Product: [Plasma] plasmashell Reporter: Gergely HORVÁTH <horvathg.1988>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: m.kurz, nate, pieteek, qydwhotmail
Priority: NOR Keywords: wayland
Version: 6.1.3   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video showing the bug

Description Gergely HORVÁTH 2024-07-05 16:48:40 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

Arranging the pinned apps in the Icon-Only Task Manager is difficult. After a while not the clicked icon but the previous, or some other one is moved. I don't see an explicit pattern here.

STEPS TO REPRODUCE
1. Add the icon only Task Manager to a panel
2. Pin multiple applications to it (I have 11)
3. Have them open (not sure if it is a hard requirement)
4. Start rearing them.

OBSERVED RESULT

After some rearangement, the panel does not move the one I clicked to move, but the one I last moved. Also the icon being dragged are not always the same as the one moving around.

EXPECTED RESULT

Move the icons that I click.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-11370H @ 3.30GHz
Memory: 31,1 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro 14 Gen6

ADDITIONAL INFORMATION

It reminds me of the time when in the Launcher, if you moved an icon, you cannot move anything else and have to close it and open again to continue rearanging.

Thank you for looking into it!
Comment 1 Gergely HORVÁTH 2024-07-05 17:09:28 UTC
Now I see, that it can be seen that "something is off", as the highlighting also does not work. Clicking on one of the icons, fixes it, so the icon highlight starts to work and the clicked icon can be moved around. I think until it is not done, the same icon will be moved always.
Comment 2 Dawid Kruczek 2024-08-09 17:52:42 UTC
I don't rearrange my taskbar too often, but when I wanted to replace one icon today I discovered this bug and can confirm that it can be reproduced on KDE Plasma 6.1.3 (Wayland) running on Fedora Workstation 40. 

Sometimes, as OP mentioned, a previously moved icon get "stuck to the cursor" and the last moved icon moves instead of the one you're trying to move next. In this case I noticed that clicking right mouse button several times fixes the issue (probably clicking anything would "unstick" it from the cursor). Also, it appears that sometimes, when you drag and drop a longer distance (>2 spots), suddenly the pinned app you're dragging changes to a different app, that was in between of where you started dragging and where you stopped.
Comment 3 Dawid Kruczek 2024-08-09 18:04:27 UTC
Created attachment 172452 [details]
Video showing the bug

I've attached a video showing described issue
Comment 4 Nate Graham 2024-08-09 20:48:59 UTC
I'm pretty sure this is caused by Bug 491100. We fixed an earlier drag-and-drop issue in Qt (which you have), and it exposed this one.

*** This bug has been marked as a duplicate of bug 491100 ***