summaryrefslogtreecommitdiff
path: root/src/ws.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ws.c')
-rw-r--r--src/ws.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ws.c b/src/ws.c
index 9072fff..8a7b2c8 100644
--- a/src/ws.c
+++ b/src/ws.c
@@ -36,6 +36,17 @@
#include <mipointer.h>
#include <extinit.h>
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 10
+#undef xalloc
+#undef xcalloc
+
+#define xcalloc calloc
+#define xalloc malloc
+#define Xcalloc calloc
+#define Xalloc malloc
+#define Xfree free
+#endif
+
#include "ws.h"
#ifdef HAVE_PROPERTIES