wl_desktop_shell: Fix _validate_size_negative function

As this function is used to check if a given value is negative, the
comparison should check for Less than Zero as a given value of Zero is
not negative

@fix
This commit is contained in:
Christopher Michael 2019-05-30 09:22:02 -04:00
parent e83259bccd
commit a8deae5ed6
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ _validate_size(struct wl_resource *resource, int32_t value)
static void
_validate_size_negative(struct wl_resource *resource, int32_t value)
{
if (value <= 0)
if (value < 0)
wl_resource_post_error(resource, XDG_POSITIONER_ERROR_INVALID_INPUT, "Invalid size passed");
}