mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fix switchign between switchers.
This commit is contained in:
parent
1e57dd40e1
commit
9a363b3ecb
1 changed files with 2 additions and 0 deletions
|
@ -1835,6 +1835,7 @@ static void run_switcher ( ModeMode mode )
|
||||||
}
|
}
|
||||||
char *input = g_strdup ( config.filter );
|
char *input = g_strdup ( config.filter );
|
||||||
char *prompt = g_strdup_printf ( "%s:", mode_get_name ( modi[mode].sw ) );
|
char *prompt = g_strdup_printf ( "%s:", mode_get_name ( modi[mode].sw ) );
|
||||||
|
curr_switcher = mode;
|
||||||
MenuState * state = menu ( modi[mode].sw, input, prompt, NULL, MENU_NORMAL );
|
MenuState * state = menu ( modi[mode].sw, input, prompt, NULL, MENU_NORMAL );
|
||||||
current_active_menu = state;
|
current_active_menu = state;
|
||||||
g_free ( prompt );
|
g_free ( prompt );
|
||||||
|
@ -1873,6 +1874,7 @@ static void process_result ()
|
||||||
}
|
}
|
||||||
if ( mode != MODE_EXIT ) {
|
if ( mode != MODE_EXIT ) {
|
||||||
char *prompt = g_strdup_printf ( "%s:", mode_get_name ( modi[mode].sw ) );
|
char *prompt = g_strdup_printf ( "%s:", mode_get_name ( modi[mode].sw ) );
|
||||||
|
curr_switcher = mode;
|
||||||
MenuState * state = menu ( modi[mode].sw, input, prompt, NULL, MENU_NORMAL );
|
MenuState * state = menu ( modi[mode].sw, input, prompt, NULL, MENU_NORMAL );
|
||||||
g_free ( prompt );
|
g_free ( prompt );
|
||||||
// TODO FIX
|
// TODO FIX
|
||||||
|
|
Loading…
Reference in a new issue