diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2016-08-16 10:52:46 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2016-08-16 11:10:27 +0200 |
commit | f01ecee75ae435e50910ca852819ee11b22e3b1a (patch) | |
tree | cc94f2c03c04c75cbfdbbf9a8a0aaf05cb90775f /libweston-desktop/xwayland.c | |
parent | 729c7fa788822e5b0561f992d040e1bb8781cbaf (diff) | |
download | weston-f01ecee75ae435e50910ca852819ee11b22e3b1a.tar.gz weston-f01ecee75ae435e50910ca852819ee11b22e3b1a.tar.bz2 weston-f01ecee75ae435e50910ca852819ee11b22e3b1a.zip |
libweston-desktop: Rename _destroy_view to _unlink_view
It doesn't destroy the view per se (except for internal surfaces) and
require the caller to also destroy the view itself at the appropriate
time.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
Diffstat (limited to 'libweston-desktop/xwayland.c')
-rw-r--r-- | libweston-desktop/xwayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libweston-desktop/xwayland.c b/libweston-desktop/xwayland.c index 6c63483e..927afab1 100644 --- a/libweston-desktop/xwayland.c +++ b/libweston-desktop/xwayland.c @@ -80,7 +80,7 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf if (surface->state != state) { if (surface->state == XWAYLAND) { - weston_desktop_surface_destroy_view(surface->view); + weston_desktop_surface_unlink_view(surface->view); surface->view = NULL; } @@ -153,7 +153,7 @@ weston_desktop_xwayland_surface_destroy(struct weston_desktop_surface *dsurface, weston_desktop_api_surface_removed(surface->desktop, surface->surface); else if (surface->state == XWAYLAND) - weston_desktop_surface_destroy_view(surface->view); + weston_desktop_surface_unlink_view(surface->view); free(surface); } |