Bug 440003

Summary: Broken animation when i drag maximized window
Product: [Plasma] kwin Reporter: d3coder <admin>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.22.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.26
Sentry Crash Report:
Attachments: animation bug

Description d3coder 2021-07-18 12:02:41 UTC
SUMMARY
When i drag maximized window, animation is broken.
It often spans to the left and right monitors and less often has weird artifacts.
Check attached video. You can see that animation spans to the left or to the right monitors and sometimes weird artifact appears.

STEPS TO REPRODUCE
1. Maximize some small window
2. Drag maximized window
3. Repeat few times until bug happens
4. For better results ensure that both monitors have maximized window

OBSERVED RESULT
Window animations spans to the left or to the monitor
Sometimes weird artifact appears


EXPECTED RESULT
Animation does not span to neighbor monitor
Artifacts do not appear


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.12.15-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2021-07-19 08:10:33 UTC
There's no video.
Comment 2 d3coder 2021-07-19 08:24:26 UTC
Created attachment 140176 [details]
animation bug
Comment 3 Vlad Zahorodnii 2021-07-19 08:28:24 UTC
AnimationEffect probably miscalculates the transformed window geometry.
Comment 4 Nate Graham 2022-07-28 20:42:28 UTC
Fixed by Ivan Tkachenko with https://invent.kde.org/plasma/kwin/-/commit/2bca18bc5f57e376c59598b51e738f2e27f00547.