diff options
author | Egmont Koblinger <egmont@gmail.com> | 2012-10-12 21:49:40 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2012-10-12 21:49:40 +0200 |
commit | 34199b9242c47eb9dd55d6cf8a8ae623f3d7a349 (patch) | |
tree | dc0feaf63d8cd263e6359fba8127f802b7d0434b | |
parent | e2b6be983a31446ba6150ddc3ca7dfa105bca7b2 (diff) | |
download | vte-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |