foot/pgo
Daniel Eklöf c51050a9bc
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.
2023-05-26 10:01:32 +02:00
..
full-current-session.sh pgo: add set -x to all PGO scripts 2021-09-12 10:39:44 +02:00
full-headless-cage.sh pgo: Use pixman renderer by default for PGO builds 2021-10-08 16:34:36 +02:00
full-headless-sway-inner.sh pgo: add set -x to all PGO scripts 2021-09-12 10:39:44 +02:00
full-headless-sway.sh pgo: Use pixman renderer by default for PGO builds 2021-10-08 16:34:36 +02:00
full-inner.sh pgo: run xtgettcap without any arguments 2022-10-10 17:18:04 +02:00
options pgo: replace meson-pgo.sh with several script primitives 2021-09-12 10:39:43 +02:00
partial.sh pgo: run xtgettcap without any arguments 2022-10-10 17:18:04 +02:00
pgo.c osc: update font subpixel mode, and window opaque compositor hint, on alpha changes 2023-05-26 10:01:32 +02:00
pgo.sh build: fix GCC detection in pgo.sh 2022-10-23 23:56:34 +02:00