summaryrefslogtreecommitdiff
path: root/desktop/selection.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-05-10 11:54:26 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-05-10 11:54:26 +0100
commit9644d0594c1dfcc6e104754793a75d23c7a6840e (patch)
tree03d1cec60e568f35ffd04d5266cac1d74ec8e0e7 /desktop/selection.c
parentd2d04824cfc088cf6776fe2c2e2abdb953dfe006 (diff)
downloadnetsurf-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.c5
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)) {