Bug 455895 - Invert effect is not applied to window thumbnails on X11
Summary: Invert effect is not applied to window thumbnails on X11
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.24.4
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-24 18:14 UTC by Holger
Modified: 2022-07-01 21:49 UTC (History)
3 users (show)

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


Attachments
Kate window is inverted but preview thumbnail is not (399.47 KB, image/png)
2022-06-27 21:05 UTC, Ismael Asensio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger 2022-06-24 18:14:18 UTC
SUMMARY

The inversion effect for whole applications is respected in Desktop-Overview and Present-all-Windows. But the two task switcher Cover-switch and Flip-switch show glaring white un-inverted windows.

STEPS TO REPRODUCE
1. open some application
2. invert it so that black becomes white & white becomes black (you can assign a keyboard shortcut for this effect)
3. check the present all windows/desktops (Ctrl+F8 or Ctrl+F9 or Ctrl+F10) - the window is presented dark
4. Use Cover-switch / Flip-switch

OBSERVED RESULT

The Task switchers show the uninverted window, same for preview picture, when hovering it's taskbar button

EXPECTED RESULT

The window shall always be inverted, no matter which effect / desktop element shows a preview

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-39-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600

ADDITIONAL INFORMATION

This is not bug 450230 - it is not merely a design issue, but an accessibility issue, as there is a reason, to invert glaring white windows stopping them from flashing my fading eye-sight
Comment 1 Nate Graham 2022-06-27 19:29:02 UTC
Fixed in Plasma 5.26 already. Unfortunately the change was too invasive to backport to older Plasma versions.
Comment 2 Ismael Asensio 2022-06-27 20:37:47 UTC
I think closing this was a misunderstanding of the "Inverted" kwin effect for the background of cover/flip switchers which got fixed :)

I can still reproduce both on X and Wayland with latest kwin master. This happens for every QML effect that uses the WindowThumbnailItem or DesktopThumbnailItem, including all of the window switchers, task manager previews, etc.
Comment 3 Nate Graham 2022-06-27 20:46:02 UTC
I think I did misunderstand, sorry.

That said I'm not sure I can reproduce the actual issue. When I enable the Invert effect, all the window colors invert properly for me. Can you attach a screenshot (or better yet, a screen recording) that shows the issue happening?
Comment 4 Ismael Asensio 2022-06-27 21:05:04 UTC
Created attachment 150208 [details]
Kate window is inverted but preview thumbnail is not

While not the original bug reporter, I'll post an screenshot for what I understand the bug refers to.

In the screenshot, the Kate window is inverted by the effect, but the preview thumbnail on the task manager is not. I'm taking the preview as an example for simplicity, as it is using the same component (WindowThumbnailItem) as other effects such as tabbox switchers, overview, etc.
Comment 5 Nate Graham 2022-06-28 16:13:06 UTC
I see now. However I can't reproduce that on Wayland. Perhaps it's X11-specific?
Comment 6 Holger 2022-07-01 21:49:57 UTC
(In reply to Ismael Asensio from comment #4)
> Created attachment 150208 [details]
> Kate window is inverted but preview thumbnail is not

Yes, that is exactly what this bug shall be about ;)
- The preview when hovering the task bar
- The miniature window when using cover-switch
- The miniature window when using flip-switch
All three are not inverted for me.