summaryrefslogtreecommitdiffstats
path: root/source/view.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-05-10 11:47:32 +0200
committerDave Davenport <qball@gmpclient.org>2016-05-10 11:47:32 +0200
commit6070826c4d8dafedf3a4b904cbe98e86ef83879b (patch)
tree7a68d105fe8df674a98df0e6ffa5be509481abda /source/view.c
parentbd412b9975b06c03a7d2e44b0ac1240ec713e9d3 (diff)
Avoid needles updates when using continious scrolling
Diffstat (limited to 'source/view.c')
-rw-r--r--source/view.c7
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;
}