search: use a sub-surface to render the search buffer

This commit is contained in:
Daniel Eklöf 2019-08-29 19:34:41 +02:00
parent 2a31c2fbbc
commit 66912cbfb5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 141 additions and 14 deletions

5
main.c
View file

@ -197,6 +197,11 @@ handle_global(void *data, struct wl_registry *registry,
term->wl.registry, name, &wl_compositor_interface, 4);
}
else if (strcmp(interface, wl_subcompositor_interface.name) == 0) {
term->wl.sub_compositor = wl_registry_bind(
term->wl.registry, name, &wl_subcompositor_interface, 1);
}
else if (strcmp(interface, wl_shm_interface.name) == 0) {
term->wl.shm = wl_registry_bind(
term->wl.registry, name, &wl_shm_interface, 1);