diff options
author | Puck Meerburg <puck@puckipedia.com> | 2022-09-23 12:48:49 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-30 10:57:19 +0100 |
commit | e40eb338b9d104e3d9fce46914b155f3ddb1e702 (patch) | |
tree | 1d1fb6de8d69a5170fa92125c4b3e7fbb64fe8ee | |
parent | 0fdeb4ca843c847abc3c089dd9ab80f1e285497f (diff) | |
download | sway-e40eb338b9d104e3d9fce46914b155f3ddb1e702.tar.xz |
criteria: allow matching on empty (NULL) titles
-rw-r--r-- | sway/criteria.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |