mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 18:39:48 +01:00
Fix protocol error when a client destroys and re-creates a subsurface
This commit is contained in:
parent
c0831344aa
commit
38064f1d18
1 changed files with 2 additions and 6 deletions
|
@ -42,7 +42,8 @@ static void subcompositor_handle_get_subsurface(struct wl_client *client,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wlr_surface_is_subsurface(surface)) {
|
if (wlr_surface_is_subsurface(surface) &&
|
||||||
|
wlr_subsurface_from_surface(surface) != NULL) {
|
||||||
wl_resource_post_error(resource,
|
wl_resource_post_error(resource,
|
||||||
WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE,
|
WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE,
|
||||||
"%s%d: wl_surface@%d is already a sub-surface",
|
"%s%d: wl_surface@%d is already a sub-surface",
|
||||||
|
@ -101,11 +102,6 @@ static void subcompositor_finish(struct wlr_subcompositor *subcompositor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static const struct wl_compositor_interface wl_compositor_impl;
|
static const struct wl_compositor_interface wl_compositor_impl;
|
||||||
|
|
||||||
static struct wlr_compositor *compositor_from_resource(
|
static struct wlr_compositor *compositor_from_resource(
|
||||||
|
|
Loading…
Reference in a new issue