xdg-shell: emit xdg_surface destroy when role object is destroyed

Fixes https://github.com/swaywm/wlroots/issues/1407
This commit is contained in:
emersion 2018-12-04 13:42:29 +01:00
parent 3efc6bc363
commit 5515faa197
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 71 additions and 74 deletions

View file

@ -18,6 +18,7 @@ struct wlr_xdg_surface *create_xdg_surface(
struct wlr_xdg_client *client, struct wlr_surface *surface,
uint32_t id);
void unmap_xdg_surface(struct wlr_xdg_surface *surface);
void reset_xdg_surface(struct wlr_xdg_surface *xdg_surface);
void destroy_xdg_surface(struct wlr_xdg_surface *surface);
void handle_xdg_surface_commit(struct wlr_surface *wlr_surface);
void handle_xdg_surface_precommit(struct wlr_surface *wlr_surface);