diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-13 08:30:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 08:30:22 -0400 |
commit | 65903d26775789608bb336ecde03259e94b3a6d7 (patch) | |
tree | 1d31b2144bd9fec670fbb79bb10e11fe2f856d0b /include/wlr/xwayland.h | |
parent | 99b92b4104bf7bdd7663289c71f6cf0933e16a0f (diff) | |
parent | 8dec7036d0c63585f05b255ae46f8af56456abf8 (diff) |
Merge pull request #857 from emersion/shell-always-unmap
Always unmap before destroying surface
Diffstat (limited to 'include/wlr/xwayland.h')
-rw-r--r-- | include/wlr/xwayland.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index 1fad54d1..477dddc4 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -75,6 +75,15 @@ struct wlr_xwayland_surface_size_hints { uint32_t win_gravity; }; +/** + * An Xwayland user interface component. It has an absolute position in + * layout-local coordinates. + * + * When a surface is ready to be displayed, the `map` event is emitted. When a + * surface should no longer be displayed, the `unmap` event is emitted. The + * `unmap` event is guaranted to be emitted before the `destroy` event if the + * view is destroyed when mapped. + */ struct wlr_xwayland_surface { xcb_window_t window_id; struct wlr_xwm *xwm; @@ -116,8 +125,7 @@ struct wlr_xwayland_surface { // _NET_WM_STATE bool fullscreen; - bool maximized_vert; - bool maximized_horz; + bool maximized_vert, maximized_horz; bool has_alpha; |