From 44b7758416d488911f9722ecccd5cc6bf8efddf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 31 Jan 2021 11:52:44 +0100 Subject: [PATCH] render: urls: positioning: place a bit further away from the starting position --- render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c b/render.c index e19d187c..40e6b698 100644 --- a/render.c +++ b/render.c @@ -2565,8 +2565,8 @@ render_urls(struct terminal *term) const struct coord *pos = &url->start; wl_subsurface_set_position( sub_surf, - (term->margins.left + pos->col * term->cell_width - term->cell_width) / term->scale, - (term->margins.top + pos->row * term->cell_height - term->cell_height / 2) / term->scale); + (term->margins.left + pos->col * term->cell_width - 2 * term->cell_width) / term->scale, + (term->margins.top + pos->row * term->cell_height - term->cell_height) / term->scale); render_osd(term, surf, sub_surf, buf, label, term->colors.table[0], term->colors.table[3], 0xf000, width, height, margin, margin);