diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c index 6bb4db0b..d8d29a1c 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -282,9 +282,7 @@ struct cmd_results *handle_command(char *_exec) { | |||
282 | } | 282 | } |
283 | if (seat) { | 283 | if (seat) { |
284 | config->handler_context.current_container = | 284 | config->handler_context.current_container = |
285 | (seat->has_focus ? | 285 | sway_seat_get_focus(seat); |
286 | sway_seat_get_focus(seat, &root_container) : | ||
287 | NULL); | ||
288 | struct cmd_results *res = handler->handle(argc-1, argv+1); | 286 | struct cmd_results *res = handler->handle(argc-1, argv+1); |
289 | if (res->status != CMD_SUCCESS) { | 287 | if (res->status != CMD_SUCCESS) { |
290 | free_argv(argc, argv); | 288 | free_argv(argc, argv); |