fix clickable edge binding activation with other mouse buttons

check for the button specified in the binding, not whether the event
contains a click

fix T4510
This commit is contained in:
Mike Blumenkrantz 2017-09-14 15:02:40 -04:00
parent 8a7ee06aab
commit 2ffa0f23dc
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ e_bindings_edge_event_find(E_Binding_Context ctxt, E_Event_Zone_Edge *ev, Eina_B
EINA_LIST_FOREACH(edge_bindings, l, binding)
/* A value of <= -1.0 for the delay indicates it as a mouse-click binding on that edge */
if (((binding->edge == ev->edge)) &&
((click && (binding->delay == -1.0 * click)) || (!click && (binding->delay >= 0.0))) &&
((click && (binding->delay == -1.0 * ev->button)) || (!click && (binding->delay >= 0.0))) &&
((binding->drag_only == ev->drag) || ev->drag) &&
((binding->any_mod) || (binding->mod == mod)))
{