diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-08-14 20:36:08 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-08-15 11:19:06 +0300 |
commit | 9914784594713f184c58e37def1d136c6af394a9 (patch) | |
tree | 66fccc7615f45a2ccec11d1f351e6209bd515ee6 /include | |
parent | 8d2ea9544b527b7a1e31bf559d2182782bc6107e (diff) |
wlr_xdg_toplevel: reparent on parent unmap
From the xdg-shell specification:
If the parent is unmapped then its children are managed as
though the parent of the now-unmapped parent has become the
parent of this surface. If no parent exists for the now-unmapped
parent then the children are managed as though they have no
parent surface.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_xdg_shell.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index e8c12ae9..70572bf5 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -117,9 +117,11 @@ struct wlr_xdg_toplevel_state { struct wlr_xdg_toplevel { struct wl_resource *resource; struct wlr_xdg_surface *base; - struct wlr_xdg_surface *parent; bool added; + struct wlr_xdg_surface *parent; + struct wl_listener parent_unmap; + struct wlr_xdg_toplevel_state client_pending; struct wlr_xdg_toplevel_state server_pending; struct wlr_xdg_toplevel_state current; |