aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell.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/xdg_shell.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/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 63a0835b..11c112be 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -548,7 +548,10 @@ void handle_xdg_shell_toplevel(struct wl_listener *listener, void *data) {
548 return; 548 return;
549 } 549 }
550 550
551 view_init(&xdg_shell_view->view, SWAY_VIEW_XDG_SHELL, &view_impl); 551 if (!view_init(&xdg_shell_view->view, SWAY_VIEW_XDG_SHELL, &view_impl)) {
552 free(xdg_shell_view);
553 return;
554 }
552 xdg_shell_view->view.wlr_xdg_toplevel = xdg_toplevel; 555 xdg_shell_view->view.wlr_xdg_toplevel = xdg_toplevel;
553 556
554 xdg_shell_view->map.notify = handle_map; 557 xdg_shell_view->map.notify = handle_map;