From e40eb338b9d104e3d9fce46914b155f3ddb1e702 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Fri, 23 Sep 2022 12:48:49 +0000 Subject: 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 5cc5b8d2..e62f9c1f 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -190,7 +190,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) { -- cgit v1.2.3-54-g00ecf