xutil.h: Add defines for valid coordinates and sizes

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-04-17 13:35:23 +02:00
parent 3e75e800ad
commit 2cf4ea5cd4
1 changed files with 5 additions and 0 deletions

View File

@ -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)
{