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
devs/bu5hm4n/sandbox_fix
Mike Blumenkrantz 6 years ago
parent 47df20207d
commit 0f216c7e95
  1. 10
      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;

Loading…
Cancel
Save