]> git.sur5r.net Git - i3/i3/commitdiff
check for empty matches
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 16 Apr 2010 20:50:20 +0000 (22:50 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 16 Apr 2010 20:50:20 +0000 (22:50 +0200)
src/cmdparse.y

index 81dd148dc8dd3b3f0632cd4c3785338243a6a4dc..f588ad1aa022039385881a3c9b080e9f3c2da578 100644 (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) {