diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-03-04 19:23:27 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | dbd2fbf4301d441be4f9a04a1df6d93c81c361f6 (patch) | |
tree | ed1e1da485e28529bf28922c08b021a7bc1856ac /sway/tree/view.c | |
parent | desktop: Rename layers to shell_layers (diff) | |
download | sway-dbd2fbf4301d441be4f9a04a1df6d93c81c361f6.tar.gz sway-dbd2fbf4301d441be4f9a04a1df6d93c81c361f6.tar.zst sway-dbd2fbf4301d441be4f9a04a1df6d93c81c361f6.zip |
view: init function should return a success bool
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 00dc4721..d62a0667 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "pango.h" | 35 | #include "pango.h" |
36 | #include "stringop.h" | 36 | #include "stringop.h" |
37 | 37 | ||
38 | void view_init(struct sway_view *view, enum sway_view_type type, | 38 | bool view_init(struct sway_view *view, enum sway_view_type type, |
39 | const struct sway_view_impl *impl) { | 39 | const struct sway_view_impl *impl) { |
40 | view->type = type; | 40 | view->type = type; |
41 | view->impl = impl; | 41 | view->impl = impl; |
@@ -44,6 +44,7 @@ void view_init(struct sway_view *view, enum sway_view_type type, | |||
44 | view->allow_request_urgent = true; | 44 | view->allow_request_urgent = true; |
45 | view->shortcuts_inhibit = SHORTCUTS_INHIBIT_DEFAULT; | 45 | view->shortcuts_inhibit = SHORTCUTS_INHIBIT_DEFAULT; |
46 | wl_signal_init(&view->events.unmap); | 46 | wl_signal_init(&view->events.unmap); |
47 | return true; | ||
47 | } | 48 | } |
48 | 49 | ||
49 | void view_destroy(struct sway_view *view) { | 50 | void view_destroy(struct sway_view *view) { |