mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
fix keyboard_execute_bindcode
This commit is contained in:
parent
8d567cd062
commit
0b8481f41a
|
@ -183,17 +183,14 @@ static bool keyboard_execute_bindcode(struct sway_keyboard *keyboard) {
|
||||||
list_t *keycode_bindings = config->current_mode->keycode_bindings;
|
list_t *keycode_bindings = config->current_mode->keycode_bindings;
|
||||||
for (int i = 0; i < keycode_bindings->length; ++i) {
|
for (int i = 0; i < keycode_bindings->length; ++i) {
|
||||||
struct sway_binding *binding = keycode_bindings->items[i];
|
struct sway_binding *binding = keycode_bindings->items[i];
|
||||||
//bool match = true;
|
if (binding_matches_keycodes(wlr_keyboard, binding)) {
|
||||||
for (int j = 0; j < binding->keys->length; ++j) {
|
struct cmd_results *results = handle_command(binding->command);
|
||||||
if (binding_matches_keycodes(wlr_keyboard, binding)) {
|
if (results->status != CMD_SUCCESS) {
|
||||||
struct cmd_results *results = handle_command(binding->command);
|
sway_log(L_DEBUG, "could not run command for binding: %s",
|
||||||
if (results->status != CMD_SUCCESS) {
|
binding->command);
|
||||||
sway_log(L_DEBUG, "could not run command for binding: %s",
|
|
||||||
binding->command);
|
|
||||||
}
|
|
||||||
free_cmd_results(results);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
free_cmd_results(results);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue