Gentoo Archives: gentoo-commits

From: "Mart Raudsepp (leio)" <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-libs/vte/files: vte-0.17.4-fix-selecting-on-activity.patch
Date: Tue, 28 Oct 2008 11:57:48
Message-Id: E1KunCk-0000Sx-Pp@stork.gentoo.org
1 leio 08/10/28 11:57:46
2
3 Added: vte-0.17.4-fix-selecting-on-activity.patch
4 Log:
5 Fix highlighting on activity, bug 242636
6 (Portage version: 2.2_rc12/cvs/Linux 2.6.25-gentoo-r4 x86_64)
7
8 Revision Changes Path
9 1.1 x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch?rev=1.1&content-type=text/plain
13
14 Index: vte-0.17.4-fix-selecting-on-activity.patch
15 ===================================================================
16 Upstream revision 2134 with useless whitespace change hunks removed:
17
18 2008-10-23 Chris Wilson
19
20 Bug 557375 – >=vte-0.16.14 breaks highlighting on activity
21
22 * src/vte.c (vte_terminal_deselect_all),
23 (vte_terminal_extend_selection):
24 After the user modifies the selection, copy it to PRIMARY and store
25 it on the terminal. This ensures that after a screen redraw, we
26 compare the contents of the selected region with the current
27 selection, instead of stale data.
28
29 --- trunk/src/vte.c 2008/10/23 09:15:37 2133
30 +++ trunk/src/vte.c 2008/10/23 09:43:21 2134
31 @@ -1018,10 +1018,16 @@
32 {
33 if (terminal->pvt->has_selection) {
34 gint sx, sy, ex, ey;
35 - terminal->pvt->has_selection = FALSE;
36 +
37 _vte_debug_print(VTE_DEBUG_SELECTION,
38 "Deselecting all text.\n");
39 +
40 + terminal->pvt->has_selection = FALSE;
41 + g_free (terminal->pvt->selection);
42 + terminal->pvt->selection = NULL;
43 +
44 vte_terminal_emit_selection_changed(terminal);
45 +
46 sx = terminal->pvt->selection_start.x;
47 sy = terminal->pvt->selection_start.y;
48 ex = terminal->pvt->selection_end.x;
49 @@ -6510,6 +6514,7 @@
50 terminal->pvt->selection_start.y,
51 terminal->pvt->selection_end.x,
52 terminal->pvt->selection_end.y);
53 + vte_terminal_copy_primary(terminal);
54 vte_terminal_emit_selection_changed(terminal);
55 }