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:
parent
00daafac10
commit
98dbaa9090
|
@ -869,7 +869,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 && EINA_FLT_EQ(binding->delay, -1.0 * click)) || (!click && (binding->delay >= 0.0))) &&
|
||||
((click && EINA_FLT_EQ(binding->delay, -1.0 * ev->button)) || (!click && (binding->delay >= 0.0))) &&
|
||||
((binding->drag_only == ev->drag) || ev->drag) &&
|
||||
((binding->any_mod) || (binding->mod == mod)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue