summaryrefslogtreecommitdiff
path: root/src/bindings.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings.cc')
-rw-r--r--src/bindings.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bindings.cc b/src/bindings.cc
index 7c13ca64..90bac388 100644
--- a/src/bindings.cc
+++ b/src/bindings.cc
@@ -158,7 +158,7 @@ OBBindings::~OBBindings()
{
grabKeys(false);
removeAllKeys();
- removeAllButtons();
+// removeAllButtons(); XXX
removeAllEvents();
}
@@ -456,7 +456,7 @@ bool OBBindings::addButton(const std::string &but, MouseContext context,
void OBBindings::removeAllButtons()
{
- for (int i = i; i < NUM_MOUSE_CONTEXT; ++i) {
+ for (int i = 0; i < NUM_MOUSE_CONTEXT; ++i) {
ButtonBindingList::iterator it, end = _buttons[i].end();
for (it = _buttons[i].begin(); it != end; ++it) {
for (int a = 0; a < NUM_MOUSE_ACTION; ++a) {