mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
render: search: add todo to only position sub-surface on a window resize
This commit is contained in:
parent
b8d79c719b
commit
a29427a185
1 changed files with 1 additions and 0 deletions
1
render.c
1
render.c
|
|
@ -1211,6 +1211,7 @@ render_search_box(struct terminal *term)
|
||||||
if (term->search.cursor >= term->search.len)
|
if (term->search.cursor >= term->search.len)
|
||||||
draw_bar(term, buf->pix, font, &fg, x, y);
|
draw_bar(term, buf->pix, font, &fg, x, y);
|
||||||
|
|
||||||
|
/* TODO: this is only necessary on a window resize */
|
||||||
wl_subsurface_set_position(
|
wl_subsurface_set_position(
|
||||||
term->window->search_sub_surface,
|
term->window->search_sub_surface,
|
||||||
margin / scale,
|
margin / scale,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue