diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-11 22:26:39 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-11 22:26:39 +1000 |
commit | eb74317c2d8e2f58bde1f04bb900ed4948005752 (patch) | |
tree | d8b6f246977c0f0526b0f03b5afd4cccadb8b81c | |
parent | 8bb40c24c7b045df0d43e9f22c096d1473f6f9f6 (diff) |
Fix dropzone box on scaled outputs
-rw-r--r-- | sway/desktop/render.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 8b5b3e95..1d2f445d 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); } } } |