Bug 497119 - Task Manager: Unexpected behavior when moving non-active icons in Wayland session with manual sorting.
Summary: Task Manager: Unexpected behavior when moving non-active icons in Wayland ses...
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 6.2.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-06 08:02 UTC by NitramO
Modified: 2024-12-19 17:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: Qt 6.8.2
Sentry Crash Report:


Attachments
Visual demonstration of the issue. (3.41 MB, image/gif)
2024-12-06 08:02 UTC, NitramO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NitramO 2024-12-06 08:02:48 UTC
Created attachment 176384 [details]
Visual demonstration of the issue.

### **Summary**  
Task Manager: Unexpected behavior when moving non-active icons in Wayland session with manual sorting.

---

### **Description**

#### Steps to Reproduce  
1. Ensure you are using KDE Neon under a Wayland session.  
2. Set the Task Manager to manual sorting mode.  
3. Open multiple windows of various applications, ensuring they appear as separate icons (disable grouping).  
4. Perform the following sequence:  
   - Select an icon representing an inactive application. Drag it to a new position in the task manager and release the mouse button.  
   - Immediately afterward, select a neighboring icon (without activating its associated application) and begin dragging it to a new position.  

#### Observed Result  
- While dragging the second icon, before releasing the mouse button:  
  - The icon you are dragging suddenly resets to its original position.  
  - The neighboring icon that your cursor first hovered over becomes "attached to your cursor" and starts moving instead.  
- This behavior consistently disrupts attempts to rearrange icons unless specific steps are taken to avoid it.  

For example:  
- If you have three distinct icons for the same app (not grouped) and drag the third (rightmost) icon to the left in the first position, this initial move succeeds.  
- However, if you then immediately try to drag the middle icon to a new position, let's say to the right:  
  - The icon you try to move (middle one) resets to its original position.  
  - The third (rightmost) icon unexpectedly becomes the one being moved, even though it wasn’t selected.

#### Expected Result  
- The icon being dragged should remain selected and move to the intended position without interference.  
- Other icons should not reset or attach themselves to the cursor unexpectedly.

#### Workaround  
- Click the icon first to activate its associated application, then drag it. This extra step prevents the erratic behavior and allows rearrangement.

---

### **Software/OS Versions**  
- **Operating System:** KDE Neon 6.2  
- **KDE Plasma Version:** 6.2.3  
- **KDE Frameworks Version:** 6.8.0  
- **Qt Version:** 6.8.0  
- **Kernel Version:** 6.8.0-49-generic  

---

### **Additional Information**  
- **Environment:** Wayland session.  
- A detailed discussion and a visual demonstration of the issue (video/gif) are available in this forum thread: https://discuss.kde.org/t/problem-when-moving-not-active-icons-in-task-manager-kde-neon-wayland/26111
Comment 1 Nate Graham 2024-12-13 20:52:39 UTC

*** This bug has been marked as a duplicate of bug 482770 ***
Comment 2 NitramO 2024-12-15 18:16:41 UTC
(In reply to Nate Graham from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 482770 ***

I just updated to Qt 6.8.1, my KDE Plasma version is 6.2.4 and i still have the bug, btw the bug i reported is not exactly the same as this one so could it be another one?
Comment 3 Nate Graham 2024-12-19 17:53:25 UTC
There were unfortunately multiple issues, and the final one is fixed in Qt 6.8.2.