From e5de9494a5b7f5d0cb2361367f144cc9485350a5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 9 Mar 2015 17:46:34 +0100 Subject: [PATCH] (XEGL) Implement wheel up/down for XEGL too --- gfx/drivers_context/xegl_ctx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/drivers_context/xegl_ctx.c b/gfx/drivers_context/xegl_ctx.c index 66bfc52846..a6dc7c6304 100644 --- a/gfx/drivers_context/xegl_ctx.c +++ b/gfx/drivers_context/xegl_ctx.c @@ -135,6 +135,8 @@ static void gfx_ctx_xegl_swap_interval(void *data, unsigned interval) } } +void x_input_poll_wheel(void *data, XButtonEvent *event, bool latch); + static void gfx_ctx_xegl_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { @@ -184,6 +186,7 @@ static void gfx_ctx_xegl_check_window(void *data, bool *quit, break; case ButtonPress: + x_input_poll_wheel(driver.input_data, &event.xbutton, true); break; case ButtonRelease: