aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/kill.c')
-rw-r--r--sway/commands/kill.c4
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) {
struct sway_view *view =
config->handler_context.current_container->sway_view;
- if (view && view->iface.close) {
- view->iface.close(view);
+ if (view) {
+ view_close(view);
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);