diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-26 13:18:33 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-26 13:18:33 +1000 |
commit | 50190bc7609d981c45d26cd0b7d6d0fbf66feb05 (patch) | |
tree | d3999226eaf620bb729ba2c4b8d284549259ce8b /sway/desktop/xdg_shell.c | |
parent | Damage output when a fullscreen view unmaps (diff) | |
download | sway-50190bc7609d981c45d26cd0b7d6d0fbf66feb05.tar.gz sway-50190bc7609d981c45d26cd0b7d6d0fbf66feb05.tar.zst sway-50190bc7609d981c45d26cd0b7d6d0fbf66feb05.zip |
Rename view's free callback to destroy
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index a06c3bd2..105e77ae 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -143,7 +143,7 @@ static void _close(struct sway_view *view) { | |||
143 | } | 143 | } |
144 | } | 144 | } |
145 | 145 | ||
146 | static void _free(struct sway_view *view) { | 146 | static void destroy(struct sway_view *view) { |
147 | struct sway_xdg_shell_view *xdg_shell_view = | 147 | struct sway_xdg_shell_view *xdg_shell_view = |
148 | xdg_shell_view_from_view(view); | 148 | xdg_shell_view_from_view(view); |
149 | if (xdg_shell_view == NULL) { | 149 | if (xdg_shell_view == NULL) { |
@@ -160,7 +160,7 @@ static const struct sway_view_impl view_impl = { | |||
160 | .wants_floating = wants_floating, | 160 | .wants_floating = wants_floating, |
161 | .for_each_surface = for_each_surface, | 161 | .for_each_surface = for_each_surface, |
162 | .close = _close, | 162 | .close = _close, |
163 | .free = _free, | 163 | .destroy = destroy, |
164 | }; | 164 | }; |
165 | 165 | ||
166 | static void handle_commit(struct wl_listener *listener, void *data) { | 166 | static void handle_commit(struct wl_listener *listener, void *data) { |