diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-09-04 14:01:55 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-14 10:57:49 +0000 |
commit | a049d66dd7907aabdaf4724a723cd79e1fa9cda7 (patch) | |
tree | ce6480c6f4e8e40196424e20a826d3d68a101347 /include/wlr | |
parent | 5ba6cf517b6dd95e6d04b97ddd7dbc4b59ea4825 (diff) |
xdg-toplevel: send invalid_parent error
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xdg_shell.h | 6 |
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. |