From 2cf4ea5cd41754b602ca831a433d5f61bdb74a00 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Apr 2016 13:35:23 +0200 Subject: [PATCH] xutil.h: Add defines for valid coordinates and sizes Signed-off-by: Uli Schlachter --- common/xutil.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/xutil.h b/common/xutil.h index 0864feaa0..5ee3b08de 100644 --- a/common/xutil.h +++ b/common/xutil.h @@ -28,6 +28,11 @@ #include "common/atoms.h" #include "common/util.h" +#define MAX_X11_COORDINATE INT16_MAX +#define MIN_X11_COORDINATE INT16_MIN +#define MAX_X11_SIZE UINT16_MAX +#define MIN_X11_SIZE 1 + static inline char * xutil_get_text_property_from_reply(xcb_get_property_reply_t *reply) {