From 8dbd555663794d00b3dac99a94c55c508d2cea04 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sun, 30 May 2010 02:23:06 +0000 Subject: [PATCH] Check for a binding status of -1 so that we skip comparison with event_status (if needed). SVN revision: 49320 --- src/bin/e_bindings.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bin/e_bindings.c b/src/bin/e_bindings.c index cf4ef1c..b02120b 100644 --- a/src/bin/e_bindings.c +++ b/src/bin/e_bindings.c @@ -924,8 +924,14 @@ e_bindings_acpi_find(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev, E_ EINA_LIST_FOREACH(acpi_bindings, l, bind) { - if ((bind->type == ev->type) && (bind->status == ev->status)) + if (bind->type == ev->type) { + /* if binding status is -1, then we don't compare event status */ + if (bind->status != -1) + { + /* binding status is set to something, compare event status */ + if (bind->status != ev->status) continue; + } if (_e_bindings_context_match(bind->ctxt, ctxt)) { E_Action *act; -- 2.7.4