From ca19014af011f5a6433fb6763fa1350c03a77f65 Mon Sep 17 00:00:00 2001 From: JiDe Zhang Date: Fri, 8 Sep 2023 21:36:56 +0800 Subject: xwayland: fix double free wlr_xwayland_shell_v1 --- include/wlr/xwayland/shell.h | 1 + include/wlr/xwayland/xwayland.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/wlr/xwayland/shell.h b/include/wlr/xwayland/shell.h index 6cd3d93e..da5cb990 100644 --- a/include/wlr/xwayland/shell.h +++ b/include/wlr/xwayland/shell.h @@ -21,6 +21,7 @@ struct wlr_xwayland_shell_v1 { struct wl_global *global; struct { + struct wl_signal destroy; struct wl_signal new_surface; // struct wlr_xwayland_surface_v1 } events; diff --git a/include/wlr/xwayland/xwayland.h b/include/wlr/xwayland/xwayland.h index 6761eff0..68c8c0ac 100644 --- a/include/wlr/xwayland/xwayland.h +++ b/include/wlr/xwayland/xwayland.h @@ -49,6 +49,7 @@ struct wlr_xwayland { struct wl_listener server_ready; struct wl_listener server_destroy; struct wl_listener seat_destroy; + struct wl_listener shell_destroy; void *data; }; -- cgit v1.2.3