Bug 470135

Summary: Prevent flickering by hiding the application preview icon before the thumbnail appears
Product: [Plasma] plasmashell Reporter: Henning <boredsquirrel>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27.7
Sentry Crash Report:

Description Henning 2023-05-22 16:16:26 UTC
SUMMARY
If you hover over a opened programs icon, it shows you a preview of the application window.

Short before it also shows you the icon though, which causes a short flicker.

Just hide the icon and show a gray box instead of a window preview if something fails, would be my solution.

The window preview works really well for me.

It takes a variable time to load though, so maybe waiting 2sec and then showing the icon instead?

--- Software ---
OS: Fedora Linux 38.20230522.0 (Kinoite)
KDE Plasma: 5.27.5
KDE Frameworks: 5.106.0
Qt: 5.15.9
Kernel: 6.2.15-300.fc38.x86_64
Compositor: wayland
Comment 1 Fushan Wen 2023-07-22 04:18:47 UTC
Git commit 0ec358800d32673a56dd2a16840e59464963c7eb by Fushan Wen.
Committed on 22/07/2023 at 04:16.
Pushed by fusionfuture into branch 'master'.

applets/taskmanager: make PauseAnimation wait longer

300ms can still causes flickers when a tooltip is shown for the first
tiem. 2000ms should be enough

Amends 93fd171a40da1bebce8d0ef70f2f6a272b02a777
FIXED-IN: 5.27.7

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/0ec358800d32673a56dd2a16840e59464963c7eb
Comment 2 Fushan Wen 2023-07-22 04:19:13 UTC
Git commit 723c3ba9b39af2104844adb3455af02a503e91e2 by Fushan Wen.
Committed on 22/07/2023 at 04:19.
Pushed by fusionfuture into branch 'Plasma/5.27'.

applets/taskmanager: make PauseAnimation wait longer

300ms can still causes flickers when a tooltip is shown for the first
tiem. 2000ms should be enough

Amends 93fd171a40da1bebce8d0ef70f2f6a272b02a777
FIXED-IN: 5.27.7


(cherry picked from commit 0ec358800d32673a56dd2a16840e59464963c7eb)

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/723c3ba9b39af2104844adb3455af02a503e91e2