subsurface: add map/unmap events

Fixes https://github.com/swaywm/wlroots/issues/1414
This commit is contained in:
emersion 2019-02-16 17:32:01 +01:00
parent 3c9f791d0e
commit 943e918a96
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 108 additions and 2 deletions

View file

@ -130,6 +130,7 @@ struct wlr_subsurface {
bool synchronized;
bool reordered;
bool mapped;
struct wl_list parent_link;
struct wl_list parent_pending_link;
@ -139,6 +140,8 @@ struct wlr_subsurface {
struct {
struct wl_signal destroy;
struct wl_signal map;
struct wl_signal unmap;
} events;
void *data;