diff options
Diffstat (limited to 'sway/input/switch.c')
-rw-r--r-- | sway/input/switch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/switch.c b/sway/input/switch.c index 3bbc636d..b7c28df1 100644 --- a/sway/input/switch.c +++ b/sway/input/switch.c @@ -1,4 +1,3 @@ -#define _POSIX_C_SOURCE 200809L #include "sway/config.h" #include "sway/desktop/transaction.h" #include "sway/input/switch.h" @@ -57,7 +56,7 @@ static void execute_binding(struct sway_switch *sway_switch) { calloc(1, sizeof(struct sway_binding)); dummy_binding->type = BINDING_SWITCH; dummy_binding->flags = matched_binding->flags; - dummy_binding->command = strdup(matched_binding->command); + dummy_binding->command = matched_binding->command; seat_execute_command(seat, dummy_binding); free(dummy_binding); |