summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-24 16:49:45 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-24 16:49:45 +0100
commit114dd37c6ec1a12d2fab752bae57a0d6e206e996 (patch)
treeb8bdf447eb61463699800774ccbf0d7f565f742c /frontends
parent3bf39f7f2ce2807d1960a2a4932ca0dd15eb139e (diff)
downloadnetsurf-114dd37c6ec1a12d2fab752bae57a0d6e206e996.tar.gz
netsurf-114dd37c6ec1a12d2fab752bae57a0d6e206e996.tar.bz2
fix RISC OS corewindows incorrectly becoming visible when scroll extents are set
Diffstat (limited to 'frontends')
-rw-r--r--frontends/riscos/corewindow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontends/riscos/corewindow.c b/frontends/riscos/corewindow.c
index bc1fb7785..2ef05da29 100644
--- a/frontends/riscos/corewindow.c
+++ b/frontends/riscos/corewindow.c
@@ -889,7 +889,11 @@ ro_cw_set_scroll(struct core_window *cw, int x, int y)
state.xscroll = x * 2;
state.yscroll = -y * 2;
- ro_cw_open(PTR_WIMP_OPEN(&state));
+ /* only update the window if it is open */
+ if (state.flags & wimp_WINDOW_OPEN) {
+ update_scrollbars(ro_cw, PTR_WIMP_OPEN(&state));
+ }
+
return NSERROR_OK;
}