Bug 457050

Summary: Invoke «Peek at Desktop» effect repeatedly may cause desync
Product: [Plasma] kwin Reporter: ratijas <me>
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KWin - Peek at Desktop - desync

Description ratijas 2022-07-23 17:10:29 UTC
Created attachment 150854 [details]
KWin - Peek at Desktop - desync

SUMMARY

Invoke «Peek at Desktop» effect repeatedly may cause desync between its reported state and actual window positions. And when that happens (like, it's reported to be active, but all windows are in place), activating it again would make windows jump away to the edges of the screen and then animating back to their positions normally.


STEPS TO REPRODUCE
0. Ensure there is a «Peek at Desktop» applet on your panel.
1. Keep pressing the shortcut for «Peek at Desktop», in my case it's Ctrl+F12 (for Shortcuts -> Plasma -> «Show Desktop» action in System Settings).

OBSERVED RESULT
«Peek at Desktop» applet has a focus line over it, indicating that the effect is active, but windows are on screen.

EXPECTED RESULT
KWin should ensure windows are animating to their proper destination even if the previous animation got interrupted.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE: git master
Qt Version: 5.15.5
Kernel Version: 5.18.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: G752VT
System Version: 1.0