summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-10-30 10:51:20 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-10-31 12:11:45 -0400
commitd6c46e48850ea649c276336f019e867a7c52c2f7 (patch)
treead71b283b50a1fa2e76fd3bb283120ceb609a545
parent379edcefbea17aa12ace93994c63d6e5b7b96130 (diff)
downloadenlightenment-d6c46e48850ea649c276336f019e867a7c52c2f7.tar.gz
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
-rw-r--r--src/bin/e_comp_wl.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 9c74d2c39d..2c5183cc82 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;