aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11.c')
-rw-r--r--src/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index ff7996a..f1a077b 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -1845,7 +1845,7 @@ puglSetPosition(PuglView* const view, const int x, const int y)
Display* const display = view->world->impl->display;
const Window win = view->impl->win;
- if (x > INT16_MAX || y > INT16_MAX) {
+ if (x < INT16_MIN || x > INT16_MAX || y < INT16_MIN || y > INT16_MAX) {
return PUGL_BAD_PARAMETER;
}