mirror of https://github.com/davatorium/rofi.git
Small update to be closer then prev
This commit is contained in:
parent
8a12ae7a00
commit
51d3e38ac0
|
@ -742,8 +742,9 @@ client* window_client( Window win )
|
||||||
if ( win == None ) return NULL;
|
if ( win == None ) return NULL;
|
||||||
|
|
||||||
int idx = winlist_find( cache_client, win );
|
int idx = winlist_find( cache_client, win );
|
||||||
|
if ( idx >= 0 ){
|
||||||
if ( idx >= 0 ) return cache_client->data[idx];
|
return cache_client->data[idx];
|
||||||
|
}
|
||||||
|
|
||||||
// if this fails, we're up that creek
|
// if this fails, we're up that creek
|
||||||
XWindowAttributes *attr = window_get_attributes( win );
|
XWindowAttributes *attr = window_get_attributes( win );
|
||||||
|
@ -1013,7 +1014,7 @@ int menu( char **lines, char **input, char *prompt, int selected, Time *time, in
|
||||||
int match = 1;
|
int match = 1;
|
||||||
// If ids provided match on that.
|
// If ids provided match on that.
|
||||||
if ( ids != NULL ) {
|
if ( ids != NULL ) {
|
||||||
client *c = ids->data[i];
|
client *c = window_client(ids->array[i]);
|
||||||
|
|
||||||
if ( tokens ) for ( int j = 1; match && tokens[j]; j++ ) {
|
if ( tokens ) for ( int j = 1; match && tokens[j]; j++ ) {
|
||||||
int test = 0;
|
int test = 0;
|
||||||
|
@ -1293,7 +1294,7 @@ void run_switcher( int fmode )
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
winlist_append( ids, c->window, c );
|
winlist_append( ids, c->window, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue