Bug 459200 - In Overview effect, widget style thinks window is inactive while window decoration thinks window is active
Summary: In Overview effect, widget style thinks window is inactive while window decor...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.25.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-16 03:41 UTC by Jin Liu
Modified: 2024-07-07 12:04 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of the bug (426.19 KB, image/jpeg)
2022-09-16 03:41 UTC, Jin Liu
Details
Same problem with Plastik decoration (370.02 KB, image/jpeg)
2022-09-20 00:43 UTC, Jin Liu
Details

Note You need to log in before you can comment on or make changes to this bug.
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.