@@ -304,15 +304,17 @@ static void apps_blur(twin_screen_t *screen, int x, int y, int w, int h)
304304 twin_composite (scaled_background , 0 , 0 , & srcop , 0 , 0 , 0 , 0 , 0 , TWIN_SOURCE ,
305305 scaled_background -> width , scaled_background -> height );
306306
307- /* Apply blur effect to the scaled background */
308- twin_stack_blur (scaled_background , 16 , 0 , scaled_background -> width - 1 , 0 ,
307+ /*
308+ * Apply blur effect to the scaled background. The valid kernel size range
309+ * is from 1 to 15.
310+ */
311+ twin_stack_blur (scaled_background , 15 , 0 , scaled_background -> width - 1 , 0 ,
309312 scaled_background -> height - 1 );
310313
311314 /* Copy the blurred background to the window */
312315 srcop .u .pixmap = scaled_background ;
313- twin_composite (window -> pixmap , window -> client .left , window -> client .top ,
314- & srcop , 0 , 0 , NULL , 0 , 0 , TWIN_SOURCE , client_width ,
315- client_height );
316+ twin_composite (window -> pixmap , 0 , 0 , & srcop , 0 , 0 , NULL , 0 , 0 , TWIN_SOURCE ,
317+ client_width , client_height );
316318
317319 twin_pixmap_destroy (scaled_background );
318320 twin_pixmap_destroy (raw_background );
0 commit comments