check for empty matches

This commit is contained in:
Michael Stapelberg 2010-04-16 22:50:20 +02:00
parent e0b7ae872e
commit bb220b27d7

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) {