mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
subcompositor: use bad_parent error
This commit is contained in:
parent
49435cb27b
commit
fac7a5cc9d
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ internal_config = configuration_data()
|
||||||
|
|
||||||
wayland_project_options = ['tests=false', 'documentation=false']
|
wayland_project_options = ['tests=false', 'documentation=false']
|
||||||
wayland_server = dependency('wayland-server',
|
wayland_server = dependency('wayland-server',
|
||||||
version: '>=1.21',
|
version: '>=1.22',
|
||||||
fallback: 'wayland',
|
fallback: 'wayland',
|
||||||
default_options: wayland_project_options,
|
default_options: wayland_project_options,
|
||||||
)
|
)
|
||||||
|
|
|
@ -429,7 +429,7 @@ static void subcompositor_handle_get_subsurface(struct wl_client *client,
|
||||||
|
|
||||||
if (wlr_surface_get_root_surface(parent) == surface) {
|
if (wlr_surface_get_root_surface(parent) == surface) {
|
||||||
wl_resource_post_error(resource,
|
wl_resource_post_error(resource,
|
||||||
WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE,
|
WL_SUBCOMPOSITOR_ERROR_BAD_PARENT,
|
||||||
"wl_subsurface@%" PRIu32
|
"wl_subsurface@%" PRIu32
|
||||||
" cannot be a parent of itself or its ancestor", id);
|
" cannot be a parent of itself or its ancestor", id);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue