while (p) {
if (p->key)
grab_key(p->key, p->state, obt_root(ob_screen),
- GrabModeAsync);
+ GrabModeSync);
p = p->next_sibling;
}
if (curpos)
grab_key(config_keyboard_reset_keycode,
config_keyboard_reset_state,
- obt_root(ob_screen), GrabModeAsync);
+ obt_root(ob_screen), GrabModeSync);
}
}
}
p = p->next_sibling;
}
+
+ XAllowEvents(obt_display, AsyncKeyboard, event_curtime);
}
static void node_rebind(KeyBindingTree *node)
}
else {
/* for leaf nodes, rebind each action assigned to it */
- GSList *it;
while (node->actions) {
/* add each action, and remove them from the original tree so
they don't get free'd on us */