1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00

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

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 );
}