diff options
author | Reza Jelveh <[email protected]> | 2024-04-15 13:39:41 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-15 01:39:41 -0400 |
commit | fb86ed6b0588dfdebfb66ce875bc63cfa0a897f6 (patch) | |
tree | 29857a1769107adc58696f08d379f608aa4e29a2 /sway/commands/blur_noise.c | |
parent | a5e79676c4bd22fc5902182acf0667907202a465 (diff) |
feat: 1.9 merge (#277)
Co-authored-by: William McKinnon <[email protected]>
Co-authored-by: Erik Reider <[email protected]>
Diffstat (limited to 'sway/commands/blur_noise.c')
-rw-r--r-- | sway/commands/blur_noise.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sway/commands/blur_noise.c b/sway/commands/blur_noise.c index bd737911..358b20f5 100644 --- a/sway/commands/blur_noise.c +++ b/sway/commands/blur_noise.c @@ -1,3 +1,4 @@ +#include "scenefx/render/fx_renderer/fx_effect_framebuffers.h" #include "sway/commands.h" #include "sway/config.h" #include "sway/output.h" @@ -16,13 +17,13 @@ struct cmd_results *cmd_blur_noise(int argc, char **argv) { config->blur_params.noise = value; - struct sway_output *output; - wl_list_for_each(output, &root->all_outputs, link) { - if (output->renderer) { - output->renderer->blur_buffer_dirty = true; - output_damage_whole(output); - } - } + struct sway_output *output; + wl_list_for_each(output, &root->all_outputs, link) { + struct fx_effect_framebuffers *effect_fbos = + fx_effect_framebuffers_try_get(output->wlr_output); + effect_fbos->blur_buffer_dirty = true; + output_damage_whole(output); + } return cmd_results_new(CMD_SUCCESS, NULL); } |