forked from enlightenment/enlightenment
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:
parent
47df20207d
commit
0f216c7e95
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue