xwayland: fix some use-after-free in xwm

This commit is contained in:
emersion 2018-02-23 10:20:53 +01:00
parent bd9583a7e8
commit b1e2718dd7
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 25 additions and 7 deletions

View file

@ -14,6 +14,7 @@ struct wlr_compositor {
struct {
struct wl_signal new_surface;
struct wl_signal destroy;
} events;
};

View file

@ -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;
};