aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-26 13:18:33 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-26 13:18:33 +1000
commit50190bc7609d981c45d26cd0b7d6d0fbf66feb05 (patch)
treed3999226eaf620bb729ba2c4b8d284549259ce8b /sway/desktop/xdg_shell.c
parentDamage output when a fullscreen view unmaps (diff)
downloadsway-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.c4
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
146static void _free(struct sway_view *view) { 146static 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
166static void handle_commit(struct wl_listener *listener, void *data) { 166static void handle_commit(struct wl_listener *listener, void *data) {