Bug 459200

Summary: In Overview effect, widget style thinks window is inactive while window decoration thinks window is active
Product: [Plasma] kwin Reporter: Jin Liu <ad.liu.jin>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: nate, noahadvs, raibo.quadrofus, uhhadd
Priority: NOR    
Version: 5.25.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of the bug
Same problem with Plastik decoration

Description Jin Liu 2022-09-16 03:41:52 UTC
Created attachment 152091 [details]
screenshot of the bug

SUMMARY
In Overview effect, the content of the active window (in Breeze theme) is in the inactive color (light gray), while the title bar is in the active color (dark gray).

STEPS TO REPRODUCE
1. Start Dolphin.
2. Trigger the Overview effect.

OBSERVED RESULT
Dolphin's titlebar is dark gray, while content area is light gray.

EXPECTED RESULT
Titlebar and content area should be in same color.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Comment 1 Nate Graham 2022-09-16 19:51:08 UTC
In fact, this is just the window using its "I'm inactive" visual state. And from KWin's perspective, the window is inactive. Heck, from the user's perspective it's inactive too; what's active is the Overview effect! :) 

The only thing we could really do here is have KWin lie to the last-active app and tell it that it's still active when Overview launches, but that's a can of worms and I don't think this is a significant enough visual unexpectedness to warrant it.
Comment 2 Jin Liu 2022-09-16 23:34:16 UTC
(In reply to Nate Graham from comment #1)
> In fact, this is just the window using its "I'm inactive" visual state. And
> from KWin's perspective, the window is inactive.

Then I think kwin should draw the titlebar in inactive color to match.
If you open two Dolphin windows, one of them active, then trigger Overview, both windows are in inactive color, but titlebars are in different colors.
Comment 3 Jin Liu 2022-09-17 00:58:11 UTC
(In reply to Jin Liu from comment #2)
> (In reply to Nate Graham from comment #1)
> > In fact, this is just the window using its "I'm inactive" visual state. And
> > from KWin's perspective, the window is inactive.
> 
> Then I think kwin should draw the titlebar in inactive color to match.
> If you open two Dolphin windows, one of them active, then trigger Overview,
> both windows are in inactive color, but titlebars are in different colors.

If you open a Dolphin window, enter Overview. then exit, you'll see that the content area changes to inactive color and back, but the titlebar doesn't change color at all.
Comment 4 Nate Graham 2022-09-19 21:11:54 UTC
Oh I get it now.

Seems like a Breeze bug?
Comment 5 Jin Liu 2022-09-20 00:43:15 UTC
Created attachment 152239 [details]
Same problem with Plastik decoration
Comment 6 Jin Liu 2022-09-20 00:45:44 UTC
(In reply to Nate Graham from comment #4)
> Seems like a Breeze bug?

I tried Plastik decoration. Same problem. (See the attachment above. Note different text color in titlebars.)
So it's more like a bug in kwin, than in specific decorations.
Comment 7 Nate Graham 2022-09-20 19:32:19 UTC
In that case you're probably right, yeah.