diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2022-02-07 10:59:41 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2022-05-12 16:46:31 +0300 |
commit | 0d8e94af61f11e5f6137fec1ed1fa18fed5e9e3e (patch) | |
tree | 2974d5e059f04233b8b16b7f5e034dea41752c90 /desktop-shell | |
parent | 53a221ccaaaa888a0efcda0ecadc45a51f03ac92 (diff) | |
download | weston-0d8e94af61f11e5f6137fec1ed1fa18fed5e9e3e.tar.gz |
libweston: Rename weston_surface_destroy() to weston_surface_unref()
Make it obvious that weston_surface has a reference counting happening
and destruction of the weston_surface happens when the last
weston_surface reference has been accounted for.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'desktop-shell')
-rw-r--r-- | desktop-shell/shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 53d804ca..0609b86d 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -2352,7 +2352,7 @@ desktop_surface_removed(struct weston_desktop_surface *desktop_surface, fade_out_done, shsurf); return; } else { - weston_surface_destroy(surface); + weston_surface_unref(surface); } } @@ -4830,7 +4830,7 @@ desktop_shell_destroy_views_on_layer(struct weston_layer *layer) if (shsurf) desktop_shell_destroy_surface(shsurf); else if (is_black_surface_view(view, NULL)) - weston_surface_destroy(view->surface); + weston_surface_unref(view->surface); } weston_layer_fini(layer); |