From 114dd37c6ec1a12d2fab752bae57a0d6e206e996 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 24 May 2020 16:49:45 +0100 Subject: [PATCH] fix RISC OS corewindows incorrectly becoming visible when scroll extents are set --- frontends/riscos/corewindow.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }