diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-04 18:43:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-07 15:33:32 +0000 |
| commit | 013b26d21221795d1107a74e28f5008a16864049 (patch) | |
| tree | 780dad890e8ab72b274819f1959bfddcfa5476a7 /render.c | |
| parent | render: reduce URL jump label margins (diff) | |
render: urls: tweak positioning
Don’t offset the labels too much vertically, _or_ horizontally.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -2563,13 +2563,15 @@ render_urls(struct terminal *term) term->wl->shm, width, height, shm_cookie_url(url), false, 1); const struct coord *pos = &url->start; - int x = pos->col * term->cell_width - 2 * term->cell_width; - int y = pos->row * term->cell_height - term->cell_height; + int x = pos->col * term->cell_width - 15 * term->cell_width / 10; + int y = pos->row * term->cell_height - 5 * term->cell_height / 10; if (x < 0) - x += 4 * term->cell_width; + x = 0; +#if 0 if (y < 0) - y += 2 * term->cell_height; + y += 15 * term->cell_height / 10; +#endif wl_subsurface_set_position( sub_surf, |
