e mouse bindings - fix wheel conflict check to check only dir 0

allows ylou to bund extra wheels for desktop switching ... much
better. no conflicts with signals :)
This commit is contained in:
Carsten Haitzler 2018-03-28 18:23:20 +09:00 committed by Mike Blumenkrantz
parent 781f4eb70b
commit eb2bdeb443
1 changed files with 3 additions and 1 deletions

View File

@ -236,7 +236,9 @@ _basic_apply_data(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata
EINA_LIST_FOREACH_SAFE(cfdata->binding.wheel, l, l2, bw)
{
if ((!bw->modifiers) && ((bw->context == E_BINDING_CONTEXT_WINDOW) || (bw->context == E_BINDING_CONTEXT_ANY)))
if ((!bw->modifiers) &&
(bw->direction == 0) &&
((bw->context == E_BINDING_CONTEXT_WINDOW) || (bw->context == E_BINDING_CONTEXT_ANY)))
{
const char *msg = _("Unable to set a mouse wheel binding without modifiers<ps/>"
"on a window: conflict with existing edje signal bindings.<ps/>"