diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-08 16:49:37 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-10 08:39:08 -0400 |
commit | cd1204f71f7222ea896c94bea3194d3b220845be (patch) | |
tree | 0bb52c62dbe246fb6ee38167e5fd1a18d0f5de28 /include | |
parent | fbddc81b59bdc7ce392fa0ed3ec3733067c8bafe (diff) |
wl-shell: render popups in the right place
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_wl_shell.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_wl_shell.h b/include/wlr/types/wlr_wl_shell.h index 0db99989..ae30f5c4 100644 --- a/include/wlr/types/wlr_wl_shell.h +++ b/include/wlr/types/wlr_wl_shell.h @@ -18,7 +18,6 @@ struct wlr_wl_shell { }; struct wlr_wl_shell_surface_transient_state { - struct wlr_wl_shell_surface *parent; int32_t x; int32_t y; enum wl_shell_surface_transient flags; @@ -55,6 +54,10 @@ struct wlr_wl_shell_surface { struct wl_listener surface_destroy_listener; + struct wlr_wl_shell_surface *parent; + struct wl_list child_link; + struct wl_list children; // transient and popups + struct { struct wl_signal destroy; struct wl_signal ping_timeout; @@ -108,5 +111,6 @@ void wlr_wl_shell_surface_ping(struct wlr_wl_shell_surface *surface); void wlr_wl_shell_surface_configure(struct wlr_wl_shell_surface *surface, enum wl_shell_surface_resize edges, int32_t width, int32_t height); void wlr_wl_shell_surface_popup_done(struct wlr_wl_shell_surface *surface); +bool wlr_wl_shell_surface_is_transient(struct wlr_wl_shell_surface *surface); #endif |