diff options
author | Erik Reider <[email protected]> | 2024-02-15 09:48:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-15 09:48:31 +0100 |
commit | 2bd366f3372d6f94f6633e62b7f7b06fcf316943 (patch) | |
tree | c3361e15ba86b73f37d0a442da84312ce4c666af /sway/desktop/render.c | |
parent | d1482ad992001facc89c4bd93ee7fb6995bc134c (diff) |
Add blur to tiling indicator (#252)
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index e1deb33b..429924c2 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -295,12 +295,6 @@ struct fx_framebuffer *get_main_buffer_blur(struct fx_renderer *renderer, struct return current_buffer; } -struct blur_stencil_data { - struct fx_texture *stencil_texture; - const struct wlr_fbox *stencil_src_box; - float *stencil_matrix; -}; - void render_blur(bool optimized, struct sway_output *output, pixman_region32_t *output_damage, const struct wlr_box *dst_box, pixman_region32_t *opaque_region, struct decoration_data *deco_data, @@ -336,7 +330,7 @@ void render_blur(bool optimized, struct sway_output *output, } // Get a stencil of the window ignoring transparent regions - if (deco_data->discard_transparent) { + if (deco_data->discard_transparent && stencil_data) { fx_renderer_scissor(NULL); fx_renderer_stencil_mask_init(); @@ -358,7 +352,7 @@ void render_blur(bool optimized, struct sway_output *output, render_texture(wlr_output, &damage, &buffer->texture, NULL, dst_box, matrix, blur_deco_data); // Finish stenciling - if (deco_data->discard_transparent) { + if (deco_data->discard_transparent && stencil_data) { fx_renderer_stencil_mask_fini(); } |