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:
parent
deee786c65
commit
046a1c612d
1 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue