Bug 466173

Summary: Window status changes to inactive the moment it's minimized, not after the minimize animation finishes playing
Product: [Plasma] kwin Reporter: Jin Liu <ad.liu.jin>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 5.27.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jin Liu 2023-02-21 01:09:28 UTC
SUMMARY
When minimizing an active window, the decoration changes to inactive color during the animation. This creates a flash at the beginning of the animation, making it less smooth than minimizing an inactive window.

Is it possible that window decoration doesn't change color during the minimzing animation?

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.0 
KDE Frameworks Version: 5.103.0
Qt Version: 5.18.5

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-02-21 23:18:39 UTC
Can confirm; the rest of the window goes inactive too.

The issue here seems to be that the window become inactive the moment the minimize animation starts playing, not after it finishes. You can see the same issue in reverse when you un-minimize a window: it's already visibly active during the animation.
Comment 2 Jin Liu 2023-02-22 00:41:48 UTC
(In reply to Nate Graham from comment #1)
> You can see the same issue in reverse when you un-minimize a window: it's already visibly
> active during the animation.

I think the current un-minimizing behavior is ok. Otherwise, if the window changes state at the end of the animation, it happens right before my eyes.
Comment 3 Nate Graham 2023-02-22 00:44:33 UTC
Yeah, that actually makes total sense.