check for empty matches

This commit is contained in:
Michael Stapelberg 2010-04-16 22:50:20 +02:00
parent e0b7ae872e
commit bb220b27d7
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ kill:
printf("killing!\n"); printf("killing!\n");
/* TODO: check if the match is empty, not if the result is empty */ /* TODO: check if the match is empty, not if the result is empty */
if (TAILQ_EMPTY(&owindows)) if (match_is_empty(&current_match))
tree_close(focused); tree_close(focused);
else { else {
TAILQ_FOREACH(current, &owindows, owindows) { TAILQ_FOREACH(current, &owindows, owindows) {