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:
Daniel Eklöf 2019-10-27 12:57:37 +01:00
parent 5fefb950b3
commit f63458ef33
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 84 additions and 80 deletions

View file

@ -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;