From 9ea0024eb1eb43e9181434f888dfe3360e852f6c Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Fri, 23 Sep 2022 12:48:49 +0000 Subject: [PATCH] criteria: allow matching on empty (NULL) titles --- sway/criteria.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/criteria.c b/sway/criteria.c index 97cf667e7..3e2db1974 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -189,7 +189,7 @@ static bool criteria_matches_view(struct criteria *criteria, if (criteria->title) { const char *title = view_get_title(view); if (!title) { - return false; + title = ""; } switch (criteria->title->match_type) {