diff options
Diffstat (limited to 'clients/view.c')
-rw-r--r-- | clients/view.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clients/view.c b/clients/view.c index 1937fc1..6d32b3e 100644 --- a/clients/view.c +++ b/clients/view.c @@ -138,11 +138,12 @@ view_page_down(struct view *view) static void button_handler(struct widget *widget, struct input *input, uint32_t time, - uint32_t button, uint32_t state, void *data) + uint32_t button, enum wl_pointer_button_state state, + void *data) { struct view *view = data; - if(!state) + if (state == WL_POINTER_BUTTON_STATE_RELEASED) return; switch(button) { |