summaryrefslogtreecommitdiff
path: root/desktop/scrollbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/scrollbar.c')
-rw-r--r--desktop/scrollbar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/scrollbar.c b/desktop/scrollbar.c
index 948009fb5..c4da77cc0 100644
--- a/desktop/scrollbar.c
+++ b/desktop/scrollbar.c
@@ -514,6 +514,12 @@ void scrollbar_set_extents(struct scrollbar *s, int length,
int well_length;
struct scrollbar_msg_data msg;
+ if (length == s->length && visible_size == s->visible_size &&
+ full_size == s->full_size) {
+ /* Nothing's changed. */
+ return;
+ }
+
if (length != -1)
s->length = length;
if (visible_size != -1)