diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-10 11:54:26 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-10 11:54:26 +0100 |
commit | 9644d0594c1dfcc6e104754793a75d23c7a6840e (patch) | |
tree | 03d1cec60e568f35ffd04d5266cac1d74ec8e0e7 /desktop/selection.c | |
parent | d2d04824cfc088cf6776fe2c2e2abdb953dfe006 (diff) | |
download | netsurf-9644d0594c1dfcc6e104754793a75d23c7a6840e.tar.gz netsurf-9644d0594c1dfcc6e104754793a75d23c7a6840e.tar.bz2 |
Remove struct selection from gui_drag_save_selection, so gui.h doesn't need it now.
Diffstat (limited to 'desktop/selection.c')
-rw-r--r-- | desktop/selection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 1b85a090c..13a1293e3 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -273,8 +273,9 @@ bool selection_click(struct selection *s, browser_mouse_state mouse, ((mouse & BROWSER_MOUSE_DRAG_1) || (modkeys && (mouse & BROWSER_MOUSE_DRAG_2)))) { /* drag-saving selection */ - - gui_drag_save_selection(s, top->window); + char *sel = selection_get_copy(s); + gui_drag_save_selection(top->window, sel); + free(sel); } else if (!modkeys) { if (pos && (mouse & BROWSER_MOUSE_PRESS_1)) { |