diff --git a/src/cmdparse.y b/src/cmdparse.y index 81dd148d..f588ad1a 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -285,7 +285,7 @@ kill: printf("killing!\n"); /* TODO: check if the match is empty, not if the result is empty */ - if (TAILQ_EMPTY(&owindows)) + if (match_is_empty(¤t_match)) tree_close(focused); else { TAILQ_FOREACH(current, &owindows, owindows) {