view interface

This commit is contained in:
Tony Crisci 2018-01-21 09:09:53 -05:00
parent 1156523ccf
commit 0e3eae4baa
8 changed files with 88 additions and 23 deletions

View file

@ -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);