diff options
Diffstat (limited to 'sway/commands/kill.c')
-rw-r--r-- | sway/commands/kill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/kill.c b/sway/commands/kill.c index a04c21f3..62a3a514 100644 --- a/sway/commands/kill.c +++ b/sway/commands/kill.c | |||
@@ -15,8 +15,8 @@ struct cmd_results *cmd_kill(int argc, char **argv) { | |||
15 | struct sway_view *view = | 15 | struct sway_view *view = |
16 | config->handler_context.current_container->sway_view; | 16 | config->handler_context.current_container->sway_view; |
17 | 17 | ||
18 | if (view && view->iface.close) { | 18 | if (view) { |
19 | view->iface.close(view); | 19 | view_close(view); |
20 | } | 20 | } |
21 | 21 | ||
22 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 22 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |