aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-29 11:09:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-29 11:09:28 +0000
commit43c05518064d6b6dc9a24cf2bded216ab84508f7 (patch)
tree76dd6f4119af35c30037b4f3dd5f54270a7aaac8 /search.c
parentinput: reset mouse state on pointer leave (diff)
wayland: store pointer to window instance in all surfaces
Diffstat (limited to 'search.c')
-rw-r--r--search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/search.c b/search.c
index 590c7577..c0c33f3b 100644
--- a/search.c
+++ b/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);