mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
fix RISC OS corewindows incorrectly becoming visible when scroll extents are set
This commit is contained in:
parent
3bf39f7f2c
commit
114dd37c6e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user