Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/1651dc2fb142430046c83e2158335f1200149483
...commit
http://git.netsurf-browser.org/netsurf.git/commit/1651dc2fb142430046c83e2158335f1200149483
...tree
http://git.netsurf-browser.org/netsurf.git/tree/1651dc2fb142430046c83e2158335f1200149483
The branch, master has been updated
via 1651dc2fb142430046c83e2158335f1200149483 (commit)
from f21c41a2e549e22e523118e8d8f2c881c0f088a7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=1651dc2fb142430046c83e2158335f1200149483
commit 1651dc2fb142430046c83e2158335f1200149483
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
RISC OS: Try setting the caret position to give the window focus.
diff --git a/frontends/riscos/local_history.c b/frontends/riscos/local_history.c
index 1b7d11e..c6c3d81 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;
-----------------------------------------------------------------------
Summary of changes:
frontends/riscos/local_history.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/frontends/riscos/local_history.c b/frontends/riscos/local_history.c
index 1b7d11e..c6c3d81 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;
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org