https://bugs.kde.org/show_bug.cgi?id=509114

Zamundaaa <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kwin/-/commit/957031ce52
                   |                            |6dd4973263262dfd981bf877eb8
                   |                            |103

--- Comment #19 from Zamundaaa <[email protected]> ---
Git commit 957031ce526dd4973263262dfd981bf877eb8103 by Xaver Hugl.
Committed on 18/12/2025 at 17:29.
Pushed by zamundaaa into branch 'master'.

wayland/colormanagement: add workaround + configuration for Windows HDR apps

Many Windows HDR games have their own configuration for display brightness.
That configuration however relies on the Windows behavior of copying HDR
content
to the screen unmodified, without any reference luminance or HDR metadata.
As a middle ground between that terrible behavior and not having Windows games
work as expected, this adds a workaround for these applications:
If a Windows application is detected, its reference, max average and maximum
luminance are overwritten with values from KWin's config, which are written to
by KScreen's HDR calibration app.

This means that while Windows games will work as expected on the screen the
configuration was written for, they will still be tonemapped properly when on
a different screen, or when taking a screenshot or screencast.

"detecting" Windows applications is implemented in two different ways, one is
simply the explicit "windows_scrgb" image description from the Wayland
protocol,
and the other is a more hacky check for the executable name.
Once it's possible to set a "windows_pq" image description as well, and both
gamescope and Wine use that, we can remove the more hacky approach again.

M  +8    -1    src/scene/surfaceitem_wayland.cpp
M  +29   -10   src/wayland/colormanagement_v1.cpp
M  +5    -2    src/wayland/colormanagement_v1.h
M  +6    -0    src/wayland/surface.cpp
M  +6    -0    src/wayland/surface.h
M  +1    -0    src/wayland/surface_p.h

https://invent.kde.org/plasma/kwin/-/commit/957031ce526dd4973263262dfd981bf877eb8103

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to