diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-05-25 16:39:32 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-05-26 08:01:32 +0000 |
| commit | c51050a9bc16b231de964156cd3ffd20ee12569e (patch) | |
| tree | d8dee9bb105c740507ad73b1ff8275ee2acfaff1 /scripts | |
| parent | .desktop: remove StartupWMClass from server, use distinct StartupWMClass for foot and footclient (diff) | |
osc: update font subpixel mode, and window opaque compositor hint, on alpha changes
When background alpha is changed at runtime (using OSC-11), we (may)
have to update the opaque hint we send to the compositor.
We must also update the subpixel mode used when rendering font
glyphs.
Why?
When the window is fully opaque, we use wl_surface_set_opaque_region()
on the entire surface, to hint to the compositor that it doesn’t have
to blend the window content with whatever is behind the
window. Obviously, if alpha is changed from opaque, to transparent (or
semi-transparent), that hint must be removed.
Sub-pixel mode is harder to explain, but in short, we can’t do
subpixel hinting with a (semi-)transparent background. Thus, similar
to the opaque hint, subpixel antialiasing must be enabled/disabled
when background alpha is changed.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
