[vte] Copy PRIMARY only on button release
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] Copy PRIMARY only on button release
- Date: Fri, 23 Oct 2009 23:44:14 +0000 (UTC)
commit ab66ce5ca7bc9948ffb5303156c3a2764656c3b7
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Oct 23 19:43:06 2009 -0400
Copy PRIMARY only on button release
Bug 598124 - The selection does not only change when the mousebutton is released
src/vte.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 1c927bc..92f977c 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6618,9 +6618,6 @@ vte_terminal_extend_selection(VteTerminal *terminal, long x, long y,
"Selection changed to "
"(%ld,%ld) to (%ld,%ld).\n",
sc->col, sc->row, ec->col, ec->row);
-
- vte_terminal_copy_primary(terminal);
- vte_terminal_emit_selection_changed(terminal);
}
static void
@@ -7076,6 +7073,7 @@ vte_terminal_button_release(GtkWidget *widget, GdkEventButton *event)
!terminal->pvt->selecting_restart &&
terminal->pvt->selecting_had_delta) {
vte_terminal_copy_primary(terminal);
+ vte_terminal_emit_selection_changed(terminal);
}
terminal->pvt->selecting = FALSE;
handled = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]