render: search: add todo to only position sub-surface on a window resize

This commit is contained in:
Daniel Eklöf 2020-03-01 12:54:50 +01:00
parent b8d79c719b
commit a29427a185
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1211,6 +1211,7 @@ render_search_box(struct terminal *term)
if (term->search.cursor >= term->search.len)
draw_bar(term, buf->pix, font, &fg, x, y);
/* TODO: this is only necessary on a window resize */
wl_subsurface_set_position(
term->window->search_sub_surface,
margin / scale,