summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2012-10-12 21:49:40 +0200
committerChristian Persch <chpe@gnome.org>2012-10-12 21:49:40 +0200
commit34199b9242c47eb9dd55d6cf8a8ae623f3d7a349 (patch)
treedc0feaf63d8cd263e6359fba8127f802b7d0434b
parente2b6be983a31446ba6150ddc3ca7dfa105bca7b2 (diff)
downloadvte-34199b9242c47eb9dd55d6cf8a8ae623f3d7a349.tar.gz
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
-rw-r--r--src/vte.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vte.c b/src/vte.c
index 7bb019d9..b46c2f0e 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