mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Small fix.
This commit is contained in:
parent
afc056ecc5
commit
91780b71db
5 changed files with 19 additions and 15 deletions
|
@ -399,14 +399,13 @@ int dmenu_switcher_dialog ( void )
|
|||
}
|
||||
|
||||
MenuState *state = menu ( &dmenu_mode, input, pd->prompt, pd->message, menu_flags );
|
||||
menu_state_set_selected_line ( state, pd->selected_line );
|
||||
while ( XPending ( display ) ) {
|
||||
XEvent ev;
|
||||
XNextEvent ( display, &ev );
|
||||
menu_state_itterrate ( state, &ev );
|
||||
}
|
||||
do {
|
||||
menu_state_restart ( state );
|
||||
menu_state_set_selected_line ( state, pd->selected_line );
|
||||
retv = FALSE;
|
||||
|
||||
menu_state_set_active ( state );
|
||||
|
@ -495,6 +494,10 @@ int dmenu_switcher_dialog ( void )
|
|||
restart = FALSE;
|
||||
retv = 10 + ( mretv & MENU_LOWER_MASK );
|
||||
}
|
||||
if ( restart ) {
|
||||
menu_state_restart ( state );
|
||||
menu_state_set_selected_line ( state, pd->selected_line );
|
||||
}
|
||||
} while ( restart );
|
||||
|
||||
menu_state_free ( state );
|
||||
|
|
|
@ -1600,7 +1600,8 @@ MenuState *menu ( Mode *sw,
|
|||
state->top_offset = state->border * 1 + state->line_height + 2 + config.line_margin * 2;
|
||||
|
||||
// Move indicator to end.
|
||||
widget_move ( WIDGET ( state->case_indicator ), state->border + textbox_get_width ( state->prompt_tb ) + entrybox_width, state->border );
|
||||
widget_move ( WIDGET ( state->case_indicator ), state->border + textbox_get_width ( state->prompt_tb ) + entrybox_width,
|
||||
state->border );
|
||||
|
||||
textbox_text ( state->case_indicator, get_matching_state () );
|
||||
state->message_tb = NULL;
|
||||
|
|
|
@ -103,7 +103,7 @@ textbox* textbox_create ( TextboxFlags flags, short x, short y, short w, short h
|
|||
tb->blink_timeout = 0;
|
||||
tb->blink = 1;
|
||||
if ( ( flags & TB_EDITABLE ) == TB_EDITABLE ) {
|
||||
tb->blink_timeout = g_timeout_add ( 1200, textbox_blink, tb );
|
||||
// tb->blink_timeout = g_timeout_add ( 1200, textbox_blink, tb );
|
||||
}
|
||||
|
||||
return tb;
|
||||
|
|
Loading…
Reference in a new issue