forked from enlightenment/enlightenment
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:
parent
e83259bccd
commit
a8deae5ed6
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue