[vte] widget: Decide on rectangular selection when the mouse click occurs



commit 50e3e3899d72cfb0ae95ae41bbc08bdaa7c28f7b
Author: Egmont Koblinger <egmont gmail com>
Date:   Tue Mar 3 15:09:58 2015 +0100

    widget: Decide on rectangular selection when the mouse click occurs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745471

 src/vte.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 5d1fb24..52f2ed6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -6371,8 +6371,6 @@ vte_terminal_start_selection(VteTerminal *terminal, long x, long y,
 {
        long delta;
 
-       terminal->pvt->selection_block_mode = !!(terminal->pvt->modifiers & GDK_CONTROL_MASK);
-
        if (terminal->pvt->selection_block_mode)
                selection_type = selection_type_char;
 
@@ -7165,6 +7163,7 @@ vte_terminal_button_press(GtkWidget *widget, GdkEventButton *event)
                        if (start_selecting) {
                                vte_terminal_deselect_all(terminal);
                                terminal->pvt->selecting_after_threshold = TRUE;
+                                terminal->pvt->selection_block_mode = !!(terminal->pvt->modifiers & 
GDK_CONTROL_MASK);
                                handled = TRUE;
                        }
                        if (extend_selecting) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]