xdg-toplevel: send invalid_parent error

This commit is contained in:
Kirill Primak 2022-09-04 14:01:55 +03:00 committed by Simon Ser
parent 5ba6cf517b
commit a049d66dd7
5 changed files with 41 additions and 8 deletions

View file

@ -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.