render: disable transparency when we’re fullscreened

The wayland protocol recommends (or mandates?) that compositors render
a black background behind fullscreened transparent windows. I.e. you
never see what’s _actually_ behind the window.

So, if you have a white, but semi-transparent background in foot,
it’ll be rendered in a shade of gray.

Given this, it’s better to simply disable transparency while we’re
fullscreened. That way, we at least get the "correct" background
color.

Closes #1416
This commit is contained in:
Daniel Eklöf 2023-07-19 16:34:42 +02:00
parent 648f6016e3
commit 899b768b74
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 32 additions and 2 deletions

View file

@ -51,8 +51,11 @@
configuration) from the monitor we were most recently mapped on,
instead of the one least recently.
* Starlight theme (the default theme) updated to [V4][starlight-v4]
* Background transparency (alpha) is now disabled in fullscreened
windows ([#1416][1416]).
[starlight-v4]: https://github.com/CosmicToast/starlight/blob/v4/CHANGELOG.md#v4
[1416]: https://codeberg.org/dnkl/foot/issues/1416
### Deprecated