aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_xdg_shell.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h
index 90371282..db1d7bd5 100644
--- a/include/wlr/types/wlr_xdg_shell.h
+++ b/include/wlr/types/wlr_xdg_shell.h
@@ -418,9 +418,11 @@ void wlr_xdg_toplevel_send_close(struct wlr_xdg_toplevel *toplevel);
/**
* Sets the parent of this toplevel. Parent can be NULL.
+ *
+ * Returns true on success, false if setting the parent would create a loop.
*/
-void wlr_xdg_toplevel_set_parent(struct wlr_xdg_toplevel *toplevel,
- struct wlr_xdg_toplevel *parent);
+bool wlr_xdg_toplevel_set_parent(struct wlr_xdg_toplevel *toplevel,
+ struct wlr_xdg_toplevel *parent);
/**
* Request that this popup closes.