mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04:00
render: never render CSD and/or search box "immediately"
Handle the CSDs and the search box the same way we handle the main
grid; when we need to redraw them, call
render_refresh_{csd,search}(). This sets a flag that is checked after
each FDM iteration. All actual rendering is done here.
This also ties the commits of the Wayland sub-surfaces to the commit
of the main surface.
This commit is contained in:
parent
e5540a0d2e
commit
c5a1af4e53
6 changed files with 118 additions and 81 deletions
6
search.c
6
search.c
|
|
@ -86,8 +86,7 @@ search_begin(struct terminal *term)
|
|||
term->is_searching = true;
|
||||
|
||||
term_xcursor_update(term);
|
||||
render_search_box(term);
|
||||
render_refresh(term);
|
||||
render_refresh_search(term);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -616,6 +615,5 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask
|
|||
|
||||
LOG_DBG("search: buffer: %S", term->search.buf);
|
||||
search_find_next(term);
|
||||
render_search_box(term);
|
||||
render_refresh(term);
|
||||
render_refresh_search(term);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue