aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-09-08 20:00:39 +0300
committerKirill Primak <vyivel@eclair.cafe>2022-09-11 09:20:08 +0300
commitba7bbab3abf49186856c2be3c0df237bb457d890 (patch)
treeecfc7536c2a42a420126f005ca4d0174fbfc84b0 /include
parentd8ef9a95de56adcd0e167dc2dfa171456d73e6e9 (diff)
xdg-foreign-v1: s/unmap/destroy
dac040f87fee1cfdd7660aa1786b0734d95e03a4 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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_xdg_foreign_v1.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_xdg_foreign_v1.h b/include/wlr/types/wlr_xdg_foreign_v1.h
index 25bc1181..45f060df 100644
--- a/include/wlr/types/wlr_xdg_foreign_v1.h
+++ b/include/wlr/types/wlr_xdg_foreign_v1.h
@@ -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;
};