mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
criteria: allow matching on empty (NULL) titles
This commit is contained in:
parent
0fdeb4ca84
commit
e40eb338b9
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ static bool criteria_matches_view(struct criteria *criteria,
|
||||||
if (criteria->title) {
|
if (criteria->title) {
|
||||||
const char *title = view_get_title(view);
|
const char *title = view_get_title(view);
|
||||||
if (!title) {
|
if (!title) {
|
||||||
return false;
|
title = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (criteria->title->match_type) {
|
switch (criteria->title->match_type) {
|
||||||
|
|
Loading…
Reference in a new issue