@@ -277,8 +277,8 @@ void effects_fini(void) {
277277}
278278
279279static void blur_output_sizes (int width , int height , int * bw , int * bh ) {
280- int ds = (blur_full_res && blur_algorithm == BLUR_ALGORITHM_KAWASE ) ? 1
281- : (blur_downsample > 0 ? blur_downsample : 1 );
280+ int ds = (blur_full_res &&
281+ blur_algorithm == BLUR_ALGORITHM_KAWASE ) ? 1 : (blur_downsample > 0 ? blur_downsample : 1 );
282282 * bw = (width / ds ) > 0 ? (width / ds ) : 1 ;
283283 * bh = (height / ds ) > 0 ? (height / ds ) : 1 ;
284284}
@@ -1043,8 +1043,7 @@ static bool rebuild_live_blur_layers(output_t *output, uint64_t bg_tex, pixman_r
10431043 if (!bg_tex )
10441044 return false;
10451045
1046- if (ctx -> layer_blur_buf && ctx -> layer_blur_native [0 ] &&
1047- ctx -> layer_blur_gen == ctx -> backdrop_gen )
1046+ if (ctx -> layer_blur_buf && ctx -> layer_blur_native [0 ] && ctx -> layer_blur_gen == ctx -> backdrop_gen )
10481047 return true;
10491048
10501049 if (!ensure_sized_buf (& ctx -> layer_blur_buf , ctx -> layer_blur_native , & ctx -> layer_blur_buf_w ,
@@ -1442,8 +1441,8 @@ static bool damage_reaches_visible_surface(output_t *output, effects_output_t *c
14421441 if (!tl -> scene_tree || !tl -> scene_tree -> node .enabled )
14431442 continue ;
14441443 // surfaces hidden during the capture cannot change it
1445- if (!include_blur_toplevels && tl -> blur &&
1446- ( tl -> blur -> blur_node || tl -> blur -> mica_node || tl -> blur -> acrylic_node ))
1444+ if (!include_blur_toplevels && tl -> blur && ( tl -> blur -> blur_node || tl -> blur -> mica_node ||
1445+ tl -> blur -> acrylic_node ))
14471446 continue ;
14481447 struct wlr_box r = get_animated_client_rect (tl );
14491448 pixman_region32_clear (& ctx -> scratch_region_a );
@@ -1658,8 +1657,8 @@ void effects_dirty_corner_masks(output_t *output) {
16581657 toplevel_t * tl ;
16591658 wl_list_for_each (tl , & server .toplevels , link )
16601659 if (tl -> rounded && tl -> rounded -> corner_mask_node && tl -> node && tl -> node -> client &&
1661- tl -> node -> client -> border_radius > 0.0f && tl -> node -> client -> state != STATE_FULLSCREEN &&
1662- tl -> node -> output && tl -> node -> output == output )
1660+ tl -> node -> client -> border_radius > 0.0f && tl -> node -> client -> state != STATE_FULLSCREEN &&
1661+ tl -> node -> output && tl -> node -> output == output )
16631662 tl -> rounded -> corner_mask_dirty = true;
16641663}
16651664
@@ -1767,8 +1766,7 @@ static bool rebuild_corner_masks(output_t *output, uint64_t bg_tex) {
17671766 }
17681767
17691768 effects_backend -> capture_readback (cap_state .buffer , & ctx -> be_state ,
1770- ctx -> be_state .pong .native_handle [0 ], 0 , 0 , ctx -> blur_w , ctx -> blur_h , 0 , 0 , cw , ch ,
1771- & src );
1769+ ctx -> be_state .pong .native_handle [0 ], 0 , 0 , ctx -> blur_w , ctx -> blur_h , 0 , 0 , cw , ch , & src );
17721770 wlr_output_state_finish (& cap_state );
17731771 if (!src )
17741772 continue ;
@@ -2225,7 +2223,7 @@ void effects_output_frame(output_t *output, struct wlr_scene_output *scene_outpu
22252223 int want_bw , want_bh ;
22262224 blur_output_sizes (output -> width , output -> height , & want_bw , & want_bh );
22272225 if (ctx -> width != output -> width || ctx -> height != output -> height || ctx -> blur_w != want_bw ||
2228- ctx -> blur_h != want_bh )
2226+ ctx -> blur_h != want_bh )
22292227 effects_output_resize (ctx , output -> width , output -> height , output );
22302228
22312229 bool bg_damaged = workspace_warmup || effect_regions_damaged (output ,
@@ -2436,7 +2434,7 @@ void effects_output_frame(output_t *output, struct wlr_scene_output *scene_outpu
24362434 int want_bw , want_bh ;
24372435 blur_output_sizes (output -> width , output -> height , & want_bw , & want_bh );
24382436 if (ctx -> width != output -> width || ctx -> height != output -> height || ctx -> blur_w != want_bw ||
2439- ctx -> blur_h != want_bh )
2437+ ctx -> blur_h != want_bh )
24402438 effects_output_resize (ctx , output -> width , output -> height , output );
24412439 }
24422440
0 commit comments