mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-01 01:40:13 -05:00
term: move per-window wayland objects from wayland struct to terminal struct
Short term, we want to break out the wayland backend from the terminal struct. Long term, we might want to support multiple windows. One step towards both the above is separating global wayland objects from per-window objects.
This commit is contained in:
parent
5fefb950b3
commit
f63458ef33
4 changed files with 84 additions and 80 deletions
4
search.c
4
search.c
|
|
@ -19,8 +19,8 @@
|
|||
static void
|
||||
search_cancel_keep_selection(struct terminal *term)
|
||||
{
|
||||
wl_surface_attach(term->wl.search_surface, NULL, 0, 0);
|
||||
wl_surface_commit(term->wl.search_surface);
|
||||
wl_surface_attach(term->window.search_surface, NULL, 0, 0);
|
||||
wl_surface_commit(term->window.search_surface);
|
||||
|
||||
free(term->search.buf);
|
||||
term->search.buf = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue