mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
xdg-shell: use defunct_role_object error
This commit is contained in:
parent
90a6c7b7e1
commit
79248e4961
2 changed files with 4 additions and 3 deletions
|
|
@ -236,8 +236,9 @@ static void xdg_surface_handle_destroy(struct wl_client *client,
|
|||
}
|
||||
|
||||
if (surface->role != WLR_XDG_SURFACE_ROLE_NONE) {
|
||||
wlr_log(WLR_ERROR, "Tried to destroy an xdg_surface before its role "
|
||||
"object");
|
||||
wl_resource_post_error(resource,
|
||||
XDG_SURFACE_ERROR_DEFUNCT_ROLE_OBJECT,
|
||||
"surface was destroyed before its role object");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue