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/xwayland.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/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 53fa42cc..eea8420d 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -219,7 +219,7 @@ static void _close(struct sway_view *view) { | |||
219 | wlr_xwayland_surface_close(view->wlr_xwayland_surface); | 219 | wlr_xwayland_surface_close(view->wlr_xwayland_surface); |
220 | } | 220 | } |
221 | 221 | ||
222 | static void _free(struct sway_view *view) { | 222 | static void destroy(struct sway_view *view) { |
223 | struct sway_xwayland_view *xwayland_view = xwayland_view_from_view(view); | 223 | struct sway_xwayland_view *xwayland_view = xwayland_view_from_view(view); |
224 | if (xwayland_view == NULL) { | 224 | if (xwayland_view == NULL) { |
225 | return; | 225 | return; |
@@ -235,7 +235,7 @@ static const struct sway_view_impl view_impl = { | |||
235 | .set_fullscreen = set_fullscreen, | 235 | .set_fullscreen = set_fullscreen, |
236 | .wants_floating = wants_floating, | 236 | .wants_floating = wants_floating, |
237 | .close = _close, | 237 | .close = _close, |
238 | .free = _free, | 238 | .destroy = destroy, |
239 | }; | 239 | }; |
240 | 240 | ||
241 | static void handle_commit(struct wl_listener *listener, void *data) { | 241 | static void handle_commit(struct wl_listener *listener, void *data) { |