From eb74317c2d8e2f58bde1f04bb900ed4948005752 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 11 Sep 2018 22:26:39 +1000 Subject: [PATCH] Fix dropzone box on scaled outputs --- sway/desktop/render.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 8b5b3e957..1d2f445d1 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -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); } } }