summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-30 09:22:02 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-05-30 09:22:02 -0400
commita8deae5ed66e64eff74fba14bc081d91f85ceb4b (patch)
tree6aa7ea147f148ea47ccaf805b664f0a8a5716d77
parente83259bccd201057dde5e8d9fac674becc57f424 (diff)
downloadenlightenment-a8deae5ed66e64eff74fba14bc081d91f85ceb4b.tar.gz
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
-rw-r--r--src/modules/wl_desktop_shell/xdg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/wl_desktop_shell/xdg.c b/src/modules/wl_desktop_shell/xdg.c
index e5e47c1975..1c9bd3bfad 100644
--- a/src/modules/wl_desktop_shell/xdg.c
+++ b/src/modules/wl_desktop_shell/xdg.c
@@ -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");
}