Fix dropzone box on scaled outputs

master
Ryan Dwyer 6 years ago
parent 8bb40c24c7
commit eb74317c2d

@ -901,7 +901,10 @@ static void render_dropzones(struct sway_output *output,
memcpy(&color, config->border_colors.focused.indicator, memcpy(&color, config->border_colors.focused.indicator,
sizeof(float) * 4); sizeof(float) * 4);
premultiply_alpha(color, 0.5); 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…
Cancel
Save