void OBBindings::fireKey(unsigned int modifiers, unsigned int key, Time time)
{
if (key == _resetkey.key && modifiers == _resetkey.modifiers) {
- reset(this);
+ resetChains(this);
} else {
KeyBindingTree *p = _curpos->first_child;
while (p) {
KeyData *data = new_key_data(win, time, modifiers, key);
python_callback(p->callback, (PyObject*)data);
Py_DECREF((PyObject*)data);
- reset(this);
+ resetChains(this);
}
break;
}
}
}
-void OBBindings::reset(OBBindings *self)
+void OBBindings::resetChains(OBBindings *self)
{
self->_timer.stop();
self->grabKeys(false);
break;
case MC_Window:
win = client->frame->plate();
- mode = GrabModeSync; // this is handled in the plate's buttonPressHandler
+ mode = GrabModeSync; // this is handled in fireButton
break;
default:
// any other elements already get button events, don't grab on them
PyObject *callback) const;
void assimilate(KeyBindingTree *node);
- static void reset(OBBindings *self); // the timer's timeout function
+ static void resetChains(OBBindings *self); // the timer's timeout function
typedef std::list <ButtonBinding*> ButtonBindingList;
ButtonBindingList _buttons[NUM_MOUSE_CONTEXT];