aboutsummaryrefslogtreecommitdiff
path: root/include
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
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')
-rw-r--r--include/rootston/output.h3
-rw-r--r--include/wlr/types/wlr_compositor.h1
-rw-r--r--include/wlr/xwm.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/include/rootston/output.h b/include/rootston/output.h
index 9682e4f5..a852a204 100644
--- a/include/rootston/output.h
+++ b/include/rootston/output.h
@@ -19,7 +19,8 @@ struct roots_output {
struct wlr_output_damage *damage;
struct wl_listener destroy;
- struct wl_listener frame;
+ struct wl_listener damage_frame;
+ struct wl_listener damage_destroy;
};
void handle_new_output(struct wl_listener *listener, void *data);
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;
};