aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_wl_shell.h6
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