diff --git a/apps/multi.c b/apps/multi.c index f7c55bb..eda1425 100644 --- a/apps/multi.c +++ b/apps/multi.c @@ -304,15 +304,17 @@ static void apps_blur(twin_screen_t *screen, int x, int y, int w, int h) twin_composite(scaled_background, 0, 0, &srcop, 0, 0, 0, 0, 0, TWIN_SOURCE, scaled_background->width, scaled_background->height); - /* Apply blur effect to the scaled background */ - twin_stack_blur(scaled_background, 16, 0, scaled_background->width - 1, 0, + /* + * Apply blur effect to the scaled background. The valid kernel size range + * is from 1 to 15. + */ + twin_stack_blur(scaled_background, 15, 0, scaled_background->width - 1, 0, scaled_background->height - 1); /* Copy the blurred background to the window */ srcop.u.pixmap = scaled_background; - twin_composite(window->pixmap, window->client.left, window->client.top, - &srcop, 0, 0, NULL, 0, 0, TWIN_SOURCE, client_width, - client_height); + twin_composite(window->pixmap, 0, 0, &srcop, 0, 0, NULL, 0, 0, TWIN_SOURCE, + client_width, client_height); twin_pixmap_destroy(scaled_background); twin_pixmap_destroy(raw_background); diff --git a/configs/Kconfig b/configs/Kconfig index c8c49b3..4a667c7 100644 --- a/configs/Kconfig +++ b/configs/Kconfig @@ -74,7 +74,7 @@ config VERTICAL_OFFSET config SHADOW_BLUR int "Shadow blur radius" default 10 - range 1 10 + range 1 15 depends on DROP_SHADOW endmenu