X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbindings.cc;h=cafc85016736eefd1e68ebdf0c6f0aa5cb73478e;hb=53bed5e59a802f527a22d940d830543726403f1e;hp=5ae389b16b84d45f0682b28433dbf9ca2683b3f0;hpb=f28550dc28608a7ad4dadaedbef21e09171d18fa;p=chaz%2Fopenbox diff --git a/src/bindings.cc b/src/bindings.cc index 5ae389b1..cafc8501 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -481,7 +481,7 @@ bool Bindings::addButton(const std::string &but, MouseContext::MC context, MouseAction::MA action, PyObject *callback) { assert(context >= 0 && context < MouseContext::NUM_MOUSE_CONTEXT); - assert(action >= 0 && context < MouseContext::NUM_MOUSE_ACTION); + assert(action >= 0 && action < MouseAction::NUM_MOUSE_ACTION); Binding b(0,0); if (!translate(but, b, false))