Bug 505478

Summary: Maximize animation effect always flickers blur
Product: [Plasma] kwin Reporter: Tech-Tac <im.tech.tac>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: andrej.halv, jonas.harer, nate, postix, xaver.hugl
Priority: LO    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.5.0
Sentry Crash Report:
Attachments: Maximize blur flicker

Description Tech-Tac 2025-06-11 15:18:51 UTC
Created attachment 182187 [details]
Maximize blur flicker

SUMMARY
Maximizing a window with blur while the maximize effect is enabled make the blur flicker for a split second after the maximization animation ends.

STEPS TO REPRODUCE
1. Enable Blur and Maximize effects in Window Effects
2. Open a window that applies blur to its background (e.g. a terminal emulator)
3. Observe the state of the blur effect once the animation ends

OBSERVED RESULT
Blur flickers/disappears for a short moment before returning back to normal

EXPECTED RESULT
Blur effect stays intact

SOFTWARE/OS VERSIONS
Arch Linux with kernel 6.15.1
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
GPU: AMD Radeon HD 7560D
Drivers: Mesa 25.1.3, kernel radeon driver
Comment 1 Nate Graham 2025-06-12 15:22:43 UTC
Can reproduce.
Comment 2 ogamal523 2025-06-25 21:01:06 UTC
This bug was briefly fixed in plasma 6.4 and it's beta, but returned in 6.4.1.
Comment 3 Marcin Woźniak 2025-08-11 11:40:34 UTC
Git commit 98bd108f093fce3677a8fd4fbf8521c4fc9e9d5d by Marcin Woźniak.
Committed on 11/08/2025 at 10:46.
Pushed by zamundaaa into branch 'master'.

plugins/maximize: ensure all animations end on the same frame

Otherwise WindowForceBlurRole is removed too early, causing blur to disappear for a frame.

M  +3    -0    src/plugins/maximize/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/98bd108f093fce3677a8fd4fbf8521c4fc9e9d5d
Comment 4 Zamundaaa 2025-08-11 13:35:03 UTC
Git commit 7f31762ba58c6676602e219af417bc96cb0fabd0 by Xaver Hugl.
Committed on 11/08/2025 at 11:40.
Pushed by zamundaaa into branch 'Plasma/6.4'.

plugins/maximize: ensure all animations end on the same frame

Otherwise WindowForceBlurRole is removed too early, causing blur to disappear for a frame.


(cherry picked from commit 98bd108f093fce3677a8fd4fbf8521c4fc9e9d5d)

Co-authored-by: Marcin Woźniak <m@rcin.dev>

M  +3    -0    src/plugins/maximize/package/contents/code/main.js

https://invent.kde.org/plasma/kwin/-/commit/7f31762ba58c6676602e219af417bc96cb0fabd0
Comment 5 jonas.harer 2025-08-16 06:37:48 UTC
Can you check, if this solved #474196 too? This seems to appear at every animation.
Comment 6 Zamundaaa 2025-08-17 12:38:33 UTC
No, bug 474196 is different.
Comment 7 Zamundaaa 2025-10-17 10:56:04 UTC
*** Bug 460905 has been marked as a duplicate of this bug. ***