mirror of
https://github.com/lbonn/rofi
synced 2024-11-23 12:23:02 +00:00
Directly queue a redraw on overlay change.
This commit is contained in:
parent
aa08c8ea78
commit
0865e0f9d4
1 changed files with 2 additions and 0 deletions
|
@ -1678,6 +1678,8 @@ void rofi_view_set_overlay ( RofiViewState *state, const char *text )
|
||||||
unsigned int x_offset = state->width - ( 2 * state->border ) - widget_get_width ( WIDGET ( state->case_indicator ) );
|
unsigned int x_offset = state->width - ( 2 * state->border ) - widget_get_width ( WIDGET ( state->case_indicator ) );
|
||||||
x_offset -= widget_get_width ( WIDGET ( state->overlay ) );
|
x_offset -= widget_get_width ( WIDGET ( state->overlay ) );
|
||||||
widget_move ( WIDGET ( state->overlay ), x_offset, state->border );
|
widget_move ( WIDGET ( state->overlay ), x_offset, state->border );
|
||||||
|
// We want to queue a repaint.
|
||||||
|
rofi_view_queue_redraw ( );
|
||||||
}
|
}
|
||||||
|
|
||||||
void rofi_view_clear_input ( RofiViewState *state )
|
void rofi_view_clear_input ( RofiViewState *state )
|
||||||
|
|
Loading…
Reference in a new issue