forked from 12to11/12to11
Fix subsurface PlaceBelow relationship checks
* subsurface.c (PlaceBelow): Fix conditions in check.
This commit is contained in:
parent
3732001e57
commit
0c3e5a0e7d
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ PlaceBelow (struct wl_client *client, struct wl_resource *resource,
|
|||
other = wl_resource_get_user_data (surface_resource);
|
||||
|
||||
if (other != subsurface->parent
|
||||
|| !CheckSiblingRelationship (subsurface, other))
|
||||
&& !CheckSiblingRelationship (subsurface, other))
|
||||
{
|
||||
wl_resource_post_error (resource, WL_SUBSURFACE_ERROR_BAD_SURFACE,
|
||||
"surface is not a sibling or the parent");
|
||||
|
|
Loading…
Add table
Reference in a new issue