Bug 462499 - When moving tab in Task Manager between two windows of the same app, the next click on the tab unexpectedly moves it again
Summary: When moving tab in Task Manager between two windows of the same app, the next...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.26.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: veggero
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-01 13:17 UTC by tustamido
Modified: 2023-02-01 05:57 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tustamido 2022-12-01 13:17:49 UTC
STEPS TO REPRODUCE
1. Read "ADDITIONAL INFORMATION" below, it might be needed to use the same Task Manager Settings as me.
2. Have at least two open windows of the same app (tested and confirmed with 2x Firefox, 2x mpv and 2x Spek) next to each other in Task Manager and a single open window of some other app (tested with Dolphin and "Task Manager Settings - Plasma").
3. On Task Manager, drag a tab and drop it between two tabs of the same app. Example: Task Manager initial order: Dolphin, Firefox, Firefox. You move Dolphin between the two Firefox windows, so now you have Firefox, Dolphin, Firefox.
4. Do a normal click (click and release) over Dolphin tab in Task Manager.

OBSERVED RESULT

The clicked tab unexpectedly changes its position in Task Manager. Example: it was Firefox, Dolphin, Firefox. I clicked Dolphin tab and now it's Firefox, Firefox, Dolphin.

This only happens in the first click on a tab that was manually rearranged between two tabs of the same app. Further clicks work as expected, until you move the tab again between two tabs of the same window, then the next click on the moved tab will again produce unexpected result.

EXPECTED RESULT

A normal click over a tab in Task Manager should just activate or minimize its window, without rearranging items. Reordering tabs in Task Manager is only expected when dragging a tab.

SOFTWARE/OS VERSIONS
openSUSE Tumbleweed Wayland
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
My "Task Manager Settings > Behavior" settings, might be needed to reproduce the issue:
- Group: Do not group
- Sort: Manually
- [ ] Keep launchers separate (unchecked)
- Clicking active task: [x] Minimizes the task (checked)
- Middle-clicking any task: Opens a new window
- Mouse wheel: [ ] Cycles through tasks
- Show only tasks: [x] From current desktop & activity
- When panel is hidden: [x] Unhide when a window wants attention
- New tasks appear: To the right.
Comment 1 veggero 2022-12-02 10:56:46 UTC
Thanks for the detailed bug report, I can reproduce with those steps and configuration. It seems like tasks of the same application have some inner desire to stay closer together. I will try to fix this in the coming days.
Comment 2 tustamido 2022-12-07 22:41:43 UTC
Thanks. From what I tested, the issue is in leaving "Keep launchers separate" unchecked, this options is buggy.