summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-client.c b/tests/test-client.c
index c6dfd96f..fc65ee60 100644
--- a/tests/test-client.c
+++ b/tests/test-client.c
@@ -28,6 +28,7 @@
#include <poll.h>
#include <wayland-client.h>
#include <GLES2/gl2.h> /* needed for GLfloat */
+#include <linux/input.h>
struct display {
struct wl_display *display;
@@ -96,7 +97,7 @@ pointer_handle_button(void *data, struct wl_pointer *pointer,
struct input *input = data;
uint32_t bit;
- bit = 1 << (button - 272);
+ bit = 1 << (button - BTN_LEFT);
if (state)
input->button_mask |= bit;
else