[vte/vte-0-34] emulation: Don't report shift-left-button release



commit 34199b9242c47eb9dd55d6cf8a8ae623f3d7a349
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Oct 12 21:49:40 2012 +0200

    emulation: Don't report shift-left-button release
    
    In case selection is deferred until the threshold is exceeded, we still need
    to consume the event so that we don't report a button release event to the app.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683729

 src/vte.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 7bb019d..b46c2f0 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8; tab-width: 8 -*- */
 /*
  * Copyright (C) 2001-2004,2009,2010 Red Hat, Inc.
  * Copyright  2008, 2009, 2010 Christian Persch
@@ -6673,7 +6674,11 @@ _vte_terminal_maybe_end_selection (VteTerminal *terminal)
 
 		return TRUE;
 	}
-	return FALSE;
+
+        if (terminal->pvt->selecting_after_threshold)
+                return TRUE;
+
+        return FALSE;
 }
 
 static long



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