diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-05-10 11:47:32 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-05-10 11:47:32 +0200 |
commit | 6070826c4d8dafedf3a4b904cbe98e86ef83879b (patch) | |
tree | 7a68d105fe8df674a98df0e6ffa5be509481abda /source/view.c | |
parent | bd412b9975b06c03a7d2e44b0ac1240ec713e9d3 (diff) |
Avoid needles updates when using continious scrolling
Diffstat (limited to 'source/view.c')
-rw-r--r-- | source/view.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/view.c b/source/view.c index b4ba9877..d112f5f1 100644 --- a/source/view.c +++ b/source/view.c @@ -888,8 +888,11 @@ static unsigned int rofi_scroll_continious ( RofiViewState * state ) offset = state->filtered_lines - state->menu_lines; } } - state->rchanged = TRUE; - scrollbar_set_handle ( state->scrollbar, offset ); + if ( offset != state->cur_page ) { + state->rchanged = TRUE; + scrollbar_set_handle ( state->scrollbar, offset ); + state->cur_page = offset; + } return offset; } |