aboutsummaryrefslogtreecommitdiff
path: root/wayland.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 /wayland.c
parentinput: reset mouse state on pointer leave (diff)
wayland: store pointer to window instance in all surfaces
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 9b8cb258..e5249a1d 100644
--- a/wayland.c
+++ b/wayland.c
@@ -51,6 +51,7 @@ csd_instantiate(struct wl_window *win)
wayl->sub_compositor, win->csd.surface[i], win->surface);
wl_subsurface_set_sync(win->csd.sub_surface[i]);
+ wl_surface_set_user_data(win->csd.surface[i], win);
wl_surface_commit(win->csd.surface[i]);
}
}