aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <orzechowski.alexander@gmail.com>2022-03-04 19:23:27 -0500
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commitdbd2fbf4301d441be4f9a04a1df6d93c81c361f6 (patch)
treeed1e1da485e28529bf28922c08b021a7bc1856ac /sway/desktop/xwayland.c
parentdesktop: Rename layers to shell_layers (diff)
downloadsway-dbd2fbf4301d441be4f9a04a1df6d93c81c361f6.tar.gz
sway-dbd2fbf4301d441be4f9a04a1df6d93c81c361f6.tar.zst
sway-dbd2fbf4301d441be4f9a04a1df6d93c81c361f6.zip
view: init function should return a success bool
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c5
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);