xwayland: Set view in surface data

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-10-20 16:02:39 +00:00 committed by Johan Malm
parent fffa912fd6
commit a29ffebc40

View file

@ -336,6 +336,8 @@ xwayland_surface_new(struct wl_listener *listener, void *data)
view->xwayland_surface = xsurface;
wl_list_init(&view->ssd.parts);
xsurface->data = view;
view->map.notify = handle_map;
wl_signal_add(&xsurface->events.map, &view->map);
view->unmap.notify = handle_unmap;