summaryrefslogtreecommitdiff
path: root/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c')
-rw-r--r--x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c b/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
index 8fea99f6bab..b4edafc969e 100644
--- a/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
+++ b/x11/modular-xorg-server/patches/patch-hw_xwayland_xwayland-input.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-hw_xwayland_xwayland-input.c,v 1.1 2019/08/22 13:12:31 nia Exp $
+$NetBSD: patch-hw_xwayland_xwayland-input.c,v 1.2 2019/10/29 22:46:39 nia Exp $
Support non-evdev platforms.
@@ -8,13 +8,13 @@ Support non-evdev platforms.
#include "xwayland.h"
-+#if defined(__linux) || defined(__FreeBSD__)
++#if defined(__linux__) || defined(__FreeBSD__)
#include <linux/input.h>
+#else
-+#define BTN_LEFT (0)
-+#define BTN_MIDDLE (1)
-+#define BTN_RIGHT (2)
-+#define BTN_SIDE (3)
++#define BTN_LEFT (0x110)
++#define BTN_RIGHT (0x111)
++#define BTN_MIDDLE (0x112)
++#define BTN_SIDE (0x113)
+#endif
#include <sys/mman.h>