discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d6c46e48850ea649c276336f019e867a7c52c2f7

commit d6c46e48850ea649c276336f019e867a7c52c2f7
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Oct 30 10:51:20 2017 -0400

    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 9c74d2c39..2c5183cc8 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -3367,11 +3367,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;

-- 


Reply via email to