Bug 508642

Summary: Icon-text task manager shows tasks in 2 rows when “Use multi-row view” is disabled
Product: [Plasma] plasmashell Reporter: Fushan Wen <qydwhotmail>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: kde, nate, qydwhotmail
Priority: NOR Keywords: regression
Version First Reported In: master   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 6.5.0
Sentry Crash Report:
Attachments: Screenshot
window group vanishing into the void
going to two rows when ungrouping

Description Fushan Wen 2025-08-23 12:09:06 UTC
Created attachment 184379 [details]
Screenshot

SUMMARY
With the latest git build, the text-icon task manager ignores the `Use multi-row view` option and always shows tasks in multiple rows when there are many windows.

STEPS TO REPRODUCE
1. Open 10+ applications
2. 
3. 

OBSERVED RESULT
The task manager shows tasks in 2 rows. The pinned icons have wrong widths.

EXPECTED RESULT
The task manager shows tasks in only 1 row.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: plasma-desktop at https://invent.kde.org/plasma/plasma-desktop/-/commit/547cac8a and plasma-workspace at 4ab3894d
KDE Frameworks Version: 
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Might be a regression from https://invent.kde.org/plasma/plasma-desktop/-/commit/d0701c19d91c963b5cc1574863961faf07a61765
Comment 1 Bug Janitor Service 2025-08-25 10:16:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3166
Comment 2 Marco Martin 2025-08-25 10:48:34 UTC
Git commit 32084ff2292b28767d38bb7a936c2ee2032c7de1 by Marco Martin, on behalf of Niccolò Venerandi.
Committed on 25/08/2025 at 10:17.
Pushed by niccolove into branch 'master'.

Fix usage of preferred width in task manager / scrollable panel

Previously the panel would use Layout.preferredWidth, which is always -1; it
now instead uses implicitWidth, which is the correct value. This commit also
brings back the correct preferred height calculation for horizontal panels in
the task manager.

M  +6    -2    applets/taskmanager/package/contents/ui/code/layoutmetrics.js
M  +1    -2    containments/panel/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/32084ff2292b28767d38bb7a936c2ee2032c7de1
Comment 3 David Redondo 2025-09-03 09:27:05 UTC
Created attachment 184663 [details]
window group vanishing into the void

I could still reproduce it the last days. It happened when a  was removed from the taskmanager either by closing or moving somewhere and this causing grouped tasks to become ungrouped.

I just tried again and instead of this behavior window groups now just vanish.
Comment 4 David Redondo 2025-09-04 07:10:21 UTC
Created attachment 184701 [details]
going to two rows when ungrouping

Still happening
Comment 5 Bug Janitor Service 2025-09-15 13:28:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5813
Comment 6 David Redondo 2025-09-15 13:40:46 UTC
Above MR doesnt really help, I just produced it with the patch, it nevertheless should be correct.
Comment 7 Nate Graham 2025-09-18 13:28:52 UTC
That change that caused this issue was reverted in https://invent.kde.org/plasma/plasma-desktop/-/commit/25b01c8037ce3414f1d6653de9566809c405de68; marking this as resolved.
Comment 8 David Redondo 2025-09-26 09:55:46 UTC
Git commit f6c214bf5d304f06d757ec7402f8184842d906e6 by David Redondo.
Committed on 26/09/2025 at 07:36.
Pushed by davidre into branch 'master'.

libtaskmanager: Dont emit row remove signals during model reset

It's not 100% correct and may confuse some views.

M  +6    -2    libtaskmanager/taskgroupingproxymodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/f6c214bf5d304f06d757ec7402f8184842d906e6