1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Directly queue a redraw on overlay change.

This commit is contained in:
Dave Davenport 2016-12-26 20:57:33 +01:00
parent aa08c8ea78
commit 0865e0f9d4

View file

@ -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 ) );
x_offset -= widget_get_width ( WIDGET ( state->overlay ) );
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 )