]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland: Set view in surface data
authorJoshua Ashton <joshua@froggi.es>
Wed, 20 Oct 2021 16:02:39 +0000 (16:02 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 20 Oct 2021 17:49:02 +0000 (18:49 +0100)
Signed-off-by: Joshua Ashton <joshua@froggi.es>
src/xwayland.c

index 345eb2df6bde6cd5c5676abec3fa082c7e3dcbd8..d7e5ae6fe6bff99da2a1de29e0f686b964f1313d 100644 (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;