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 #include #include /* needed for GLfloat */ +#include 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