mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
criteria: allow matching on empty (NULL) titles
This commit is contained in:
parent
a8b079882b
commit
9ea0024eb1
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,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…
Add table
Add a link
Reference in a new issue