From 0ca4062d6deb68d99acb78a87e2d2790618e8cbb Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Sun, 21 May 2023 00:13:31 -0400 Subject: [PATCH] fix: layer old damage not being offset by the monitor layout coords --- sway/desktop/layer_shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 3bbc855d..8a828dc6 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -337,8 +337,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { int blur_size = layer->has_blur? config_get_blur_size(): 0; int shadow_sigma = layer->has_shadow? config->shadow_blur_sigma: 0; int effect_size = MAX(blur_size, shadow_sigma); - old_extent.x -= effect_size; - old_extent.y -= effect_size; + old_extent.x += output->lx - effect_size; + old_extent.y += output->ly - effect_size; old_extent.width += effect_size * 2; old_extent.height += effect_size * 2; output_damage_box(output, &old_extent);