remove default from kill switch

This commit is contained in:
Tony Crisci 2018-03-31 21:05:58 -04:00
parent 81556f4b2a
commit b5d49cc4e8

View File

@ -14,6 +14,7 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
case C_ROOT:
case C_OUTPUT:
case C_WORKSPACE:
case C_TYPES:
return cmd_results_new(CMD_INVALID, NULL,
"Can only kill views and containers with this command");
break;
@ -24,8 +25,6 @@ struct cmd_results *cmd_kill(int argc, char **argv) {
case C_VIEW:
view_close(con->sway_view);
break;
default:
break;
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);