mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
wayland: store pointer to window instance in all surfaces
This commit is contained in:
parent
1091d1c078
commit
43c0551806
3 changed files with 10 additions and 1 deletions
2
search.c
2
search.c
|
|
@ -75,6 +75,8 @@ search_begin(struct terminal *term)
|
|||
struct wl_window *win = term->window;
|
||||
struct wayland *wayl = term->wl;
|
||||
win->search_surface = wl_compositor_create_surface(wayl->compositor);
|
||||
wl_surface_set_user_data(win->search_surface, term->window);
|
||||
|
||||
win->search_sub_surface = wl_subcompositor_get_subsurface(
|
||||
wayl->sub_compositor, win->search_surface, win->surface);
|
||||
wl_subsurface_set_desync(win->search_sub_surface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue