fix RISC OS corewindows incorrectly becoming visible when scroll extents are set

This commit is contained in:
Vincent Sanders 2020-05-24 16:49:45 +01:00
parent 3bf39f7f2c
commit 114dd37c6e
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}