check for empty matches

next
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");
/* 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);
else {
TAILQ_FOREACH(current, &owindows, owindows) {