diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-20 23:17:48 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-20 23:17:48 +0100 |
commit | 4cef0f955c3be33344361f84d600bccf1b28ce75 (patch) | |
tree | 222d27faab4fa078d183d1771b818c4a6448f5bb /desktop/selection.h | |
parent | 2f672279014bb6ef2f7b9f346c58d20c7604bad9 (diff) | |
download | netsurf-4cef0f955c3be33344361f84d600bccf1b28ce75.tar.gz netsurf-4cef0f955c3be33344361f84d600bccf1b28ce75.tar.bz2 |
pass the browser window to selection click handler
this means the content handlers do not have to provide a separate
method to extract their browser window and it can simply be
passed in.
Diffstat (limited to 'desktop/selection.h')
-rw-r--r-- | desktop/selection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/selection.h b/desktop/selection.h index ca0d19fe9..cfaf59baf 100644 --- a/desktop/selection.h +++ b/desktop/selection.h @@ -28,6 +28,7 @@ #include "content/handlers/css/utils.h" struct box; +struct browser_window; typedef enum { DRAG_NONE, @@ -166,7 +167,7 @@ void selection_set_position(struct selection *s, unsigned start, unsigned end); * \param idx byte offset within textual representation * \return true iff the click has been handled by the selection code */ -bool selection_click(struct selection *s, browser_mouse_state mouse, unsigned idx); +bool selection_click(struct selection *s, struct browser_window *top, browser_mouse_state mouse, unsigned idx); /** * Handles movements related to the selection, eg. dragging of start and |