From 0f216c7e955d153a85549cfb564a16b3c8bf7441 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 30 Oct 2017 10:51:20 -0400 Subject: [PATCH] handle more mouse buttons under wayland this was incorrectly referenced from weston's x11 compositor, which directly uses xcb events and sends them as wl_pointer events. efl translates all input events to use the same button scheme numbering, coincidentally enabling the use of this code for all backends --- src/bin/e_comp_wl.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 023a8cf54..141132c77 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -3459,11 +3459,17 @@ e_comp_wl_evas_handle_mouse_button(E_Client *ec, uint32_t timestamp, uint32_t bu btn = BTN_RIGHT; break; case 4: + btn = BTN_SIDE; + break; case 5: + btn = BTN_EXTRA; + break; case 6: + btn = BTN_FORWARD; + break; case 7: - /* these are supposedly axis events */ - return EINA_FALSE; + btn = BTN_BACK; + break; default: btn = button_id + BTN_SIDE - 8; break;