diff options
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r-- | sway/commands/bind.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index f6e58d99..25be415e 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <wlr/types/wlr_cursor.h> | 8 | #include <wlr/types/wlr_cursor.h> |
9 | #include "sway/commands.h" | 9 | #include "sway/commands.h" |
10 | #include "sway/config.h" | 10 | #include "sway/config.h" |
11 | #include "sway/desktop/transaction.h" | ||
11 | #include "sway/input/cursor.h" | 12 | #include "sway/input/cursor.h" |
12 | #include "sway/input/keyboard.h" | 13 | #include "sway/input/keyboard.h" |
13 | #include "sway/ipc-server.h" | 14 | #include "sway/ipc-server.h" |
@@ -559,8 +560,8 @@ struct cmd_results *cmd_bind_or_unbind_switch(int argc, char **argv, | |||
559 | free_switch_binding(binding); | 560 | free_switch_binding(binding); |
560 | return cmd_results_new(CMD_FAILURE, | 561 | return cmd_results_new(CMD_FAILURE, |
561 | "Invalid %s command " | 562 | "Invalid %s command " |
562 | "(expected switch state: unknown state %d)", | 563 | "(expected switch state: unknown state %s)", |
563 | bindtype, split->items[0]); | 564 | bindtype, split->items[1]); |
564 | } | 565 | } |
565 | list_free_items_and_destroy(split); | 566 | list_free_items_and_destroy(split); |
566 | 567 | ||
@@ -642,6 +643,8 @@ void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding) | |||
642 | if (success) { | 643 | if (success) { |
643 | ipc_event_binding(binding); | 644 | ipc_event_binding(binding); |
644 | } | 645 | } |
646 | |||
647 | transaction_commit_dirty(); | ||
645 | } | 648 | } |
646 | 649 | ||
647 | /** | 650 | /** |