diff options
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 2c6184fd..8f79b5e7 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -796,7 +796,10 @@ struct sway_xwayland_view *create_xwayland_view(struct wlr_xwayland_surface *xsu | |||
796 | return NULL; | 796 | return NULL; |
797 | } | 797 | } |
798 | 798 | ||
799 | view_init(&xwayland_view->view, SWAY_VIEW_XWAYLAND, &view_impl); | 799 | if (!view_init(&xwayland_view->view, SWAY_VIEW_XWAYLAND, &view_impl)) { |
800 | free(xwayland_view); | ||
801 | return NULL; | ||
802 | } | ||
800 | xwayland_view->view.wlr_xwayland_surface = xsurface; | 803 | xwayland_view->view.wlr_xwayland_surface = xsurface; |
801 | 804 | ||
802 | wl_signal_add(&xsurface->events.destroy, &xwayland_view->destroy); | 805 | wl_signal_add(&xsurface->events.destroy, &xwayland_view->destroy); |