aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-23 08:19:37 -0500
committerGitHub <noreply@github.com>2018-02-23 08:19:37 -0500
commit5ad15c90d507b9658f2917588b6e1bcf33c4615f (patch)
treea8a6b751d56d1f5ec09d47bddb0e3c4fbe939149 /include/wlr
parentbd9583a7e8108ab4fd31fc5ab6f7c1552258fa6e (diff)
parentca3a9478640e6e70b89a988fd0005e6b57b6b35c (diff)
Merge pull request #664 from emersion/fix-various-use-after-free
Fix a bunch of use-after-free
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_compositor.h1
-rw-r--r--include/wlr/xwm.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h
index 8481c590..5919b934 100644
--- a/include/wlr/types/wlr_compositor.h
+++ b/include/wlr/types/wlr_compositor.h
@@ -14,6 +14,7 @@ struct wlr_compositor {
struct {
struct wl_signal new_surface;
+ struct wl_signal destroy;
} events;
};
diff --git a/include/wlr/xwm.h b/include/wlr/xwm.h
index 242ff9cc..65681607 100644
--- a/include/wlr/xwm.h
+++ b/include/wlr/xwm.h
@@ -93,7 +93,8 @@ struct wlr_xwm {
const xcb_query_extension_reply_t *xfixes;
- struct wl_listener compositor_surface_create;
+ struct wl_listener compositor_new_surface;
+ struct wl_listener compositor_destroy;
struct wl_listener seat_selection;
struct wl_listener seat_primary_selection;
};