From cd1204f71f7222ea896c94bea3194d3b220845be Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 8 Oct 2017 16:49:37 -0400 Subject: wl-shell: render popups in the right place --- include/wlr/types/wlr_wl_shell.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/wlr') 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 -- cgit v1.2.3