diff options
-rw-r--r-- | src/wlt_toolkit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wlt_toolkit.h b/src/wlt_toolkit.h index 01d557b..263e76f 100644 --- a/src/wlt_toolkit.h +++ b/src/wlt_toolkit.h @@ -179,6 +179,8 @@ static inline bool wlt_rect_contains(struct wlt_rect *rect, unsigned int x, unsigned int y) { + if (x < rect->x || y < rect->y) + return false; if (x >= rect->x + rect->width) return false; if (y >= rect->y + rect->height) |