config: add tweak.transparent_fullscreen=no|yes option

When enabled, the alpha channel will not be disabled when in
fullscreen state

Defaults to `no`
This commit is contained in:
Leonardo Hernández Hernández 2023-07-21 14:29:31 -06:00
parent f3d848da01
commit e41fafd985
No known key found for this signature in database
GPG key ID: E538897EE11B9624
4 changed files with 11 additions and 3 deletions

View file

@ -538,7 +538,7 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
}
else if (cell->attrs.bg_src == COLOR_DEFAULT) {
if (term->window->is_fullscreen) {
if (term->window->is_fullscreen && !term->conf->tweak.transparent_fullscreen) {
/*
* Note: disable transparency when fullscreened.
*
@ -2900,8 +2900,7 @@ grid_render(struct terminal *term)
xassert(term->height > 0);
struct buffer_chain *chain = term->render.chains.grid;
bool use_alpha = !term->window->is_fullscreen &&
term->colors.alpha != 0xffff;
bool use_alpha = term->colors.alpha != 0xffff;
struct buffer *buf = shm_get_buffer(
chain, term->width, term->height, use_alpha);