diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-08-04 14:10:30 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-08-04 14:11:01 +0100 |
commit | 1651dc2fb142430046c83e2158335f1200149483 (patch) | |
tree | f02284031eba5ba230e6167836947821fc7e7daa /frontends | |
parent | f21c41a2e549e22e523118e8d8f2c881c0f088a7 (diff) | |
download | netsurf-1651dc2fb142430046c83e2158335f1200149483.tar.gz netsurf-1651dc2fb142430046c83e2158335f1200149483.tar.bz2 |
RISC OS: Try setting the caret position to give the window focus.
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/riscos/local_history.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/frontends/riscos/local_history.c b/frontends/riscos/local_history.c index 1b7d11e07..c6c3d8162 100644 --- a/frontends/riscos/local_history.c +++ b/frontends/riscos/local_history.c @@ -384,7 +384,6 @@ ro_local_history_open(struct ro_local_history_window *lhw, wimp_w parent) state.visible.x1 = width; state.visible.y1 = height; state.next = wimp_HIDDEN; - state.flags |= wimp_WINDOW_HAS_FOCUS; error = xwimp_open_window(PTR_WIMP_OPEN(&state)); if (error) { NSLOG(netsurf, INFO, "xwimp_open_window: 0x%x: %s", @@ -395,6 +394,15 @@ ro_local_history_open(struct ro_local_history_window *lhw, wimp_w parent) ro_gui_dialog_open_persistent(parent, lhw->core.wh, true); + /* Give the window focus. */ + error = xwimp_set_caret_position(lhw->core.wh, -1, 0, 0, -1, 0); + if (error) { + NSLOG(netsurf, INFO, + "xwimp_get_caret_position: 0x%x : %s", + error->errnum, + error->errmess); + } + local_history_scroll_to_cursor(lhw->session); return NSERROR_OK; |