Bug 427076

Summary: Minimized window thumbnails show both icon and content
Product: [Plasma] plasmashell Reporter: tromzy
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, bugseforuns, nate, plasma-bugs, vlad.zahorodnii
Priority: NOR Keywords: wayland
Version: 5.19.90   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.20
Sentry Crash Report:
Attachments: The thumbnail show both icon and content

Description tromzy 2020-09-28 15:45:55 UTC
Created attachment 131988 [details]
The thumbnail show both icon and content

SUMMARY
In Plasma Wayland 5.19.90, when a window is minimized, the thumbnail show both its icon and its content (see attached screenshot). I think it should show only the icon.

STEPS TO REPRODUCE
1. Open an app in a Wayland session
2. Minimize it
3. Put mouse pointer on its icon in Icon-only task manager

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-09-29 17:20:01 UTC
I can confirm this bug on Arch Linux. Classic task manager is also affected.

Operating System: Arch Linux
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Comment 2 Nate Graham 2020-09-29 18:26:44 UTC
heh oops!
Comment 3 Nate Graham 2020-09-29 18:52:03 UTC
Fixing it might be as simple as something like this:

diff --git applets/taskmanager/package/contents/ui/ToolTipInstance.qml applets/taskmanager/package/contents/ui/ToolTipInstance.qml
index 24d131a92..0a0b51011 100644
--- applets/taskmanager/package/contents/ui/ToolTipInstance.qml
+++ applets/taskmanager/package/contents/ui/ToolTipInstance.qml
@@ -230,7 +230,7 @@ ColumnLayout {
             source: thumbnailSourceItem.isMinimized && !albumArtImage.visible && Number.isInteger(thumbnailSourceItem.winId) ? icon : ""
             animated: false
             usesPlasmaTheme: false
-            visible: valid
+            visible: valid && !pipeWireLoader.active
         }
 
         ToolTipWindowMouseArea {


I'll test soon.
Comment 4 Bug Janitor Service 2020-09-30 14:17:15 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/168
Comment 5 Nate Graham 2020-09-30 14:23:09 UTC
Git commit 5a049e833c611b1d57c6b7a3b9a7a60ed99ccad7 by Nate Graham.
Committed on 30/09/2020 at 14:13.
Pushed by ngraham into branch 'master'.

[applets/taskmanager] Don't show icons on top of thumbnails on Wayland
FIXED-IN: 5.20

M  +1    -1    applets/taskmanager/package/contents/ui/ToolTipInstance.qml

https://invent.kde.org/plasma/plasma-desktop/commit/5a049e833c611b1d57c6b7a3b9a7a60ed99ccad7
Comment 6 Nate Graham 2020-09-30 14:24:11 UTC
Git commit 250efd62ef5c4a121d775498b73d01e5f7b01975 by Nate Graham.
Committed on 30/09/2020 at 14:24.
Pushed by ngraham into branch 'Plasma/5.20'.

[applets/taskmanager] Don't show icons on top of thumbnails on Wayland
FIXED-IN: 5.20


(cherry picked from commit 5a049e833c611b1d57c6b7a3b9a7a60ed99ccad7)

M  +1    -1    applets/taskmanager/package/contents/ui/ToolTipInstance.qml

https://invent.kde.org/plasma/plasma-desktop/commit/250efd62ef5c4a121d775498b73d01e5f7b01975