Make workspace name also searchable

This commit is contained in:
Dave Davenport 2016-12-26 16:23:55 +01:00
parent ee310c8470
commit aa08c8ea78
1 changed files with 3 additions and 0 deletions

View File

@ -354,6 +354,9 @@ static int window_match ( const Mode *sw, GRegex **tokens, unsigned int index )
if ( !test && c->name != NULL && c->name[0] != '\0' ) {
test = token_match ( ftokens, c->name );
}
if ( !test && c->wmdesktopstr != NULL && c->wmdesktopstr[0] != '\0' ) {
test = token_match ( ftokens, c->wmdesktopstr );
}
if ( test == 0 ) {
match = 0;