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
This commit is contained in:
Mike Blumenkrantz 2017-10-30 10:51:20 -04:00
parent 47df20207d
commit 0f216c7e95
1 changed files with 8 additions and 2 deletions

View File

@ -3459,11 +3459,17 @@ e_comp_wl_evas_handle_mouse_button(E_Client *ec, uint32_t timestamp, uint32_t bu
btn = BTN_RIGHT; btn = BTN_RIGHT;
break; break;
case 4: case 4:
btn = BTN_SIDE;
break;
case 5: case 5:
btn = BTN_EXTRA;
break;
case 6: case 6:
btn = BTN_FORWARD;
break;
case 7: case 7:
/* these are supposedly axis events */ btn = BTN_BACK;
return EINA_FALSE; break;
default: default:
btn = button_id + BTN_SIDE - 8; btn = button_id + BTN_SIDE - 8;
break; break;