From 943e918a965e7cb07d84913170032784c31ff5d4 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 16 Feb 2019 17:32:01 +0100 Subject: subsurface: add map/unmap events Fixes https://github.com/swaywm/wlroots/issues/1414 --- include/rootston/view.h | 2 ++ include/wlr/types/wlr_surface.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/rootston/view.h b/include/rootston/view.h index b1feb5ce..0174e4f3 100644 --- a/include/rootston/view.h +++ b/include/rootston/view.h @@ -181,6 +181,8 @@ struct roots_subsurface { struct roots_view_child view_child; struct wlr_subsurface *wlr_subsurface; struct wl_listener destroy; + struct wl_listener map; + struct wl_listener unmap; }; struct roots_wl_shell_popup { diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index b8f8c02a..0c389987 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -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; -- cgit v1.2.3