Bug 406128

Summary: Window List doesn't show the virtual desktop labels any more
Product: [Plasma] plasmashell Reporter: Lothar <lopa>
Component: Window List widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, hein, nate, uhhadd
Priority: NOR Keywords: regression
Version First Reported In: 5.15.3   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lothar 2019-04-01 23:40:18 UTC
SUMMARY
Since one of the last updates of OpenSuse Tumbleweed, Window List shows only a single list of all opened windows without separating them by labels with the names of the virtual desktops.

STEPS TO REPRODUCE
1. Open some windows in different virtual desktops
2. Open the windowlist plasmoid

OBSERVED RESULT
See above

EXPECTED RESULT
The list entries should be separated by labels with the name of the workspace.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSuse Tumbleweed
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2019-04-27 16:24:22 UTC
Same thing on Arch linux.

KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3
Comment 2 Lothar 2019-06-24 16:05:23 UTC
Here's some more information. The WindowList plasmoid is in the plasma5-desktop package. But the "good" and "bad" version of the /usr/share/plasma/plasmoids/org.kde.plasma.windowlist/contents/ui/main.qml file are almost identical. The bug must be caused by some change in the Plasma5 framework.

I've tried to debug this issue, but that's not easy without any experience in KDE plasmoid and QtQuick programming. But it seems, that the block "section.delegate: PlasmaComponents.Label {...}" isn't executed at all.

I've added the following statements at the end of the "ListView {...}" block:

|             Component.onCompleted: {
| 	    	console.log("section = ", section)
|             	console.log("section.property = ", section.property)
|             	console.log("section.criteria = ", section.criteria)
|             	console.log("section.delegate = ", section.delegate)
|             	console.log("section.delegate.Status = ", section.delegateStatus)
|             	console.log("virtualDesktopInfo.numberOfDesktops = ", virtualDesktopInfo.numberOfDesktops)
| 		for (var i = 0; i < virtualDesktopInfo.numberOfDesktops; ++i)
| 		  console.log("  ", i, virtualDesktopInfo.desktopNames[i])
| 	    }

This is the output if I start it in a console window:

| $ plasmawindowed org.kde.plasma.windowlist
| org.kde.plasmaquick: Applet preload policy set to 1
| org.kde.plasma: requesting config for "Fensterliste" without a containment!
| qml: section =  QQuickViewSection(0x562837571730)
| qml: section.property =  VirtualDesktop
| qml: section.criteria =  0
| qml: section.delegate =  QQmlComponent(0x562837725f70)
| qml: section.delegate.Status =  undefined
| qml: virtualDesktopInfo.numberOfDesktops =  8
| qml:    0 Arbeitsfläche 1
| qml:    1 Arbeitsfläche 2
| qml:    2 Arbeitsfläche 3
| qml:    3 Arbeitsfläche 4
| qml:    4 Arbeitsfläche 5
| qml:    5 Arbeitsfläche 6
| qml:    6 Arbeitsfläche 7
| qml:    7 Arbeitsfläche 8
| qml: 0

It seems, that all information is correct, there are 8 workspaces with the correct labels. But there's no output from any console.log statement added to the "section.delegate: PlasmaComponents.Label {...}" block.
Comment 3 Eike Hein 2019-06-29 16:22:03 UTC
It might be a regression from a change in the backend that altered how it reports virtual desktop information. I'll try to have a look soon.
Comment 4 Nate Graham 2022-06-25 16:04:01 UTC

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