aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiDe Zhang <zccrs@live.com>2023-09-08 21:36:56 +0800
committerSimon Ser <contact@emersion.fr>2023-10-06 10:04:11 +0200
commitca19014af011f5a6433fb6763fa1350c03a77f65 (patch)
tree88f3c8698a362bdfb53569132e25e5983a74df46 /include
parente58c7bb792adb6bd7fe24070648046bd3ffe8104 (diff)
xwayland: fix double free wlr_xwayland_shell_v1
Diffstat (limited to 'include')
-rw-r--r--include/wlr/xwayland/shell.h1
-rw-r--r--include/wlr/xwayland/xwayland.h1
2 files changed, 2 insertions, 0 deletions
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;
};