commit e40eb338b9d104e3d9fce46914b155f3ddb1e702
parent 0fdeb4ca843c847abc3c089dd9ab80f1e285497f
Author: Puck Meerburg <puck@puckipedia.com>
Date: Fri, 23 Sep 2022 12:48:49 +0000
criteria: allow matching on empty (NULL) titles
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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) {