basic command criteria

This commit is contained in:
Tony Crisci 2018-01-20 16:21:45 -05:00
parent c353e01c85
commit 6a1d71b8b8
8 changed files with 549 additions and 9 deletions

View file

@ -15,7 +15,13 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
return cmd_results_new(CMD_FAILURE, NULL, "no seat context given");
}
struct sway_view *view = seat->focus->sway_view;
struct sway_view *view = NULL;
if (config->handler_context.current_container) {
view = config->handler_context.current_container->sway_view;
} else {
view = seat->focus->sway_view;
}
if (view->iface.close) {
view->iface.close(view);