summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/gui.h1
-rw-r--r--desktop/selection.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/desktop/gui.h b/desktop/gui.h
index ba5912ae7..abfb413cc 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -117,6 +117,7 @@ void gui_drag_save_object(gui_save_type type, hlcache_handle *c,
struct gui_window *g);
void gui_drag_save_selection(struct selection *s, struct gui_window *g);
void gui_start_selection(struct gui_window *g);
+void gui_clear_selection(struct gui_window *g);
void gui_paste_from_clipboard(struct gui_window *g, int x, int y);
bool gui_empty_clipboard(void);
diff --git a/desktop/selection.c b/desktop/selection.c
index dc66fef91..5962a8f36 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -703,6 +703,8 @@ void selection_clear(struct selection *s, bool redraw)
s->start_idx = 0;
s->end_idx = 0;
+ gui_clear_selection(s->bw->window);
+
if (redraw && was_defined)
selection_redraw(s, old_start, old_end);
}