diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-09-23 12:48:49 +0000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-09-23 12:48:49 +0000 |
| commit | bfcbe08aced80d84095b991190532527ad2897e6 (patch) | |
| tree | 1d1fb6de8d69a5170fa92125c4b3e7fbb64fe8ee | |
| parent | f09939da0a3a7d21943b54cc2178b10cda5e8ce5 (diff) | |
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) { |
