mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Fix dropzone box on scaled outputs
This commit is contained in:
parent
8bb40c24c7
commit
eb74317c2d
1 changed files with 4 additions and 1 deletions
|
@ -901,7 +901,10 @@ static void render_dropzones(struct sway_output *output,
|
|||
memcpy(&color, config->border_colors.focused.indicator,
|
||||
sizeof(float) * 4);
|
||||
premultiply_alpha(color, 0.5);
|
||||
render_rect(output->wlr_output, damage, &seat->op_drop_box, color);
|
||||
struct wlr_box box;
|
||||
memcpy(&box, &seat->op_drop_box, sizeof(struct wlr_box));
|
||||
scale_box(&box, output->wlr_output->scale);
|
||||
render_rect(output->wlr_output, damage, &box, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue