diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-06 18:16:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-06 18:16:54 +0000 |
| commit | c5a1af4e534f0f290ea885b221d7d37d020ac994 (patch) | |
| tree | 6562a6351daa3e35e11c81ae887f45b473889c5e /search.c | |
| parent | render: csd: improved look of minimize/maximize/close buttons (diff) | |
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.
Diffstat (limited to 'search.c')
| -rw-r--r-- | search.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); } |
