X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fbindings.cc;h=df1de3ecaa4032f848a998c749c76620c217c4e2;hb=1da8531a7b4eea22592b6d0760352d2a34e9b6b0;hp=a369410294786d003772097aeb910c94baa8b504;hpb=f7a0eb7624fa323a37f9fb0e306d7e1bbc745e15;p=chaz%2Fopenbox diff --git a/src/bindings.cc b/src/bindings.cc index a3694102..df1de3ec 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -241,7 +241,6 @@ bool Bindings::addKey(const StringVect &keylist, PyObject *callback) if (t) { // already bound to something - // XXX: look if callback is already bound to this key? t->callbacks.push_back(callback); destroytree(tree); } else { @@ -261,7 +260,7 @@ bool Bindings::addKey(const StringVect &keylist, PyObject *callback) return true; } - +/* bool Bindings::removeKey(const StringVect &keylist, PyObject *callback) { assert(false); // XXX: function not implemented yet @@ -295,7 +294,7 @@ bool Bindings::removeKey(const StringVect &keylist, PyObject *callback) } return false; } - +*/ void Bindings::setResetKey(const std::string &key) { @@ -442,7 +441,7 @@ void Bindings::fireKey(int screen, unsigned int modifiers, unsigned int key, _timer = new otk::Timer(5000, // 5 second timeout (otk::Timer::TimeoutHandler)resetChains, this); - // grab the server here to make sure no key pressed go missed + // grab the server here to make sure no key presses get missed otk::display->grab(); grabKeys(false); _curpos = p;