Created attachment 139173 [details] The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right. SUMMARY STEPS TO REPRODUCE 1. Place task manager widget in the center of a panel (by adding flexible space on each of the sides). 2. Have few or no windows open. OBSERVED RESULT The task items appear off-center, because the widget width computed is too wide with redundant whitespace on the right, pushing the existing items towards the left. EXPECTED RESULT The items are exactly in the center because the widget has the same width as the combined widths of the existing items. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.22.0 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 Kernel Version: 5.12.9-arch1-1 (64-bit) ADDITIONAL INFORMATION This is only an aesthetic issue, but it bugs me. The issue resolves itself once a larger number of windows is open and no redundant space in the widget is produced. Using Latte Dock is not a solution because it does not have a feature to show window titles, only icons.
Created attachment 139175 [details] The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right.
Created attachment 139176 [details] Panel edit mode reveals excess width in the task manager widget.
see https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/470
That was merged. Natalie, are you able to use the setting added there to make the Task Manager work how you expect?
No, this setting does not resolve it. I think the problem is `launcherLayoutTasks` in the layout code, which always adds one or more spaces the size of a regular task even when (as in my example) part of it are only launchers. I made several attempts at fixing it without breaking it somewhere else but didn't manage.
*** This bug has been marked as a duplicate of bug 424055 ***