summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e5e47c197..1c9bd3bfa 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)
56static void 56static void
57_validate_size_negative(struct wl_resource *resource, int32_t value) 57_validate_size_negative(struct wl_resource *resource, int32_t value)
58{ 58{
59 if (value <= 0) 59 if (value < 0)
60 wl_resource_post_error(resource, XDG_POSITIONER_ERROR_INVALID_INPUT, "Invalid size passed"); 60 wl_resource_post_error(resource, XDG_POSITIONER_ERROR_INVALID_INPUT, "Invalid size passed");
61} 61}
62 62