xdg-foreign-v1: s/unmap/destroy

dac040f87f mistakenly renamed
xdg_surface_destroy listener, which was listening to *unmap* events, to
xdg_surface_unmap. The actual fix, however, is to listen to destroy
events. This fixes various crashes.
This commit is contained in:
Kirill Primak 2022-09-08 20:00:39 +03:00
parent d8ef9a95de
commit ba7bbab3ab
2 changed files with 13 additions and 13 deletions

View file

@ -34,7 +34,7 @@ struct wlr_xdg_exported_v1 {
struct wlr_xdg_foreign_exported base;
struct wl_resource *resource;
struct wl_listener xdg_surface_unmap;
struct wl_listener xdg_surface_destroy;
struct wl_list link; // wlr_xdg_foreign_v1.exporter.objects
};
@ -54,7 +54,7 @@ struct wlr_xdg_imported_child_v1 {
struct wl_list link; // wlr_xdg_imported_v1.children
struct wl_listener xdg_surface_unmap;
struct wl_listener xdg_surface_destroy;
struct wl_listener xdg_toplevel_set_parent;
};