diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2020-11-10 10:20:03 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2020-11-10 10:20:03 +0000 |
commit | de7244a17017c3aa35d05b4229e49f8959dcc92d (patch) | |
tree | 4551902efadeb36a1e520ea2978db97489db67d3 /frontends/riscos/toolbar.c | |
parent | 59078c3f20ab76fce3358c2a101d3c7d0584935a (diff) | |
download | netsurf-de7244a17017c3aa35d05b4229e49f8959dcc92d.tar.gz netsurf-de7244a17017c3aa35d05b4229e49f8959dcc92d.tar.bz2 |
risc os: Don't let URL complete start consume URL bar drags.
Diffstat (limited to 'frontends/riscos/toolbar.c')
-rw-r--r-- | frontends/riscos/toolbar.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/frontends/riscos/toolbar.c b/frontends/riscos/toolbar.c index b3acba503..c6a882ab6 100644 --- a/frontends/riscos/toolbar.c +++ b/frontends/riscos/toolbar.c @@ -1115,18 +1115,20 @@ bool ro_toolbar_click(wimp_pointer *pointer) return true; } - /* Nothing else has handled this, so try passing it to the - * URL Complete module. - * - * \TODO -- This should really move into the URL Bar module, as - * URL Complete is really an extension to that. - */ - - if (toolbar->url != NULL && toolbar->url_display && - ro_gui_url_bar_test_for_text_field_click(toolbar->url, - pointer)) { - ro_gui_url_complete_start(toolbar); - return true; + if (pointer->buttons != wimp_DRAG_SELECT && + pointer->buttons != wimp_DRAG_ADJUST) { + /* Nothing else has handled this click, so try passing it to + * the URL Complete module. + * + * \TODO -- This should really move into the URL Bar module, as + * URL Complete is really an extension to that. + */ + if (toolbar->url != NULL && toolbar->url_display && + ro_gui_url_bar_test_for_text_field_click( + toolbar->url, pointer)) { + ro_gui_url_complete_start(toolbar); + return true; + } } return false; |