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



commit 32878c8e557bcc507d4d67e55560599603bdf905
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 1da35fd..4de9ee6 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, 2011 Christian Persch
@@ -6390,7 +6391,11 @@ _vte_view_maybe_end_selection (VteView *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]