diff options
author | Erik Reider <[email protected]> | 2024-02-15 09:48:31 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-15 09:48:31 +0100 |
commit | 2bd366f3372d6f94f6633e62b7f7b06fcf316943 (patch) | |
tree | c3361e15ba86b73f37d0a442da84312ce4c666af /sway/input/seatop_move_tiling.c | |
parent | d1482ad992001facc89c4bd93ee7fb6995bc134c (diff) |
Add blur to tiling indicator (#252)
Diffstat (limited to 'sway/input/seatop_move_tiling.c')
-rw-r--r-- | sway/input/seatop_move_tiling.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c index 87e887ca..4e4db18c 100644 --- a/sway/input/seatop_move_tiling.c +++ b/sway/input/seatop_move_tiling.c @@ -45,6 +45,16 @@ static void handle_render(struct sway_seat *seat, struct wlr_box box; memcpy(&box, &e->drop_box, sizeof(struct wlr_box)); scale_box(&box, output->wlr_output->scale); + + // Render blur + pixman_region32_t opaque_region; + pixman_region32_init(&opaque_region); + struct decoration_data deco_data = get_undecorated_decoration_data(); + deco_data.blur = e->con->blur_enabled; + deco_data.corner_radius = e->con->corner_radius; + render_blur(false, output, damage, &box, &opaque_region, &deco_data, NULL); + pixman_region32_fini(&opaque_region); + render_rounded_rect(output, damage, &box, color, e->con->corner_radius * output->wlr_output->scale, ALL); } |