Fix bug introduced with d1ba4bd8dc

* Match all fields of window struct, not just title.
This commit is contained in:
Dave Davenport 2015-01-14 08:15:52 +01:00
parent deee786c65
commit 046a1c612d
1 changed files with 3 additions and 3 deletions

View File

@ -708,19 +708,19 @@ static int window_match ( char **tokens, __attribute__( ( unused ) ) const char
}
if ( !test && c->class[0] != '\0' ) {
char *key = token_collate_key ( c->title, case_sensitive );
char *key = token_collate_key ( c->class, case_sensitive );
test = ( strstr ( key, tokens[j] ) != NULL );
g_free ( key );
}
if ( !test && c->role[0] != '\0' ) {
char *key = token_collate_key ( c->title, case_sensitive );
char *key = token_collate_key ( c->role, case_sensitive );
test = ( strstr ( key, tokens[j] ) != NULL );
g_free ( key );
}
if ( !test && c->name[0] != '\0' ) {
char *key = token_collate_key ( c->title, case_sensitive );
char *key = token_collate_key ( c->name, case_sensitive );
test = ( strstr ( key, tokens[j] ) != NULL );
g_free ( key );
}