[vte/vte-0-52] emulation: Do not encode keyboard modifiers in X10 mouse mode
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-52] emulation: Do not encode keyboard modifiers in X10 mouse mode
- Date: Mon, 8 Apr 2019 21:13:15 +0000 (UTC)
commit 6127bc73705fe36eab2fdbf345eaa1dd410284c2
Author: Egmont Koblinger <egmont gmail com>
Date: Mon Feb 11 22:57:13 2019 +0100
emulation: Do not encode keyboard modifiers in X10 mouse mode
https://gitlab.gnome.org/GNOME/vte/issues/93
(cherry picked from commit 473c4e712881252cc832e31ecf7f2d077f60f70f)
src/vte.cc | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 8c881803..70bf13b0 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5391,15 +5391,17 @@ VteTerminalPrivate::feed_mouse_event(vte::grid::coords const& rowcol /* confined
}
/* Encode the modifiers. */
- if (m_modifiers & GDK_SHIFT_MASK) {
- cb |= 4;
- }
- if (m_modifiers & VTE_META_MASK) {
- cb |= 8;
- }
- if (m_modifiers & GDK_CONTROL_MASK) {
- cb |= 16;
- }
+ if (m_mouse_tracking_mode >= MOUSE_TRACKING_SEND_XY_ON_BUTTON) {
+ if (m_modifiers & GDK_SHIFT_MASK) {
+ cb |= 4;
+ }
+ if (m_modifiers & VTE_META_MASK) {
+ cb |= 8;
+ }
+ if (m_modifiers & GDK_CONTROL_MASK) {
+ cb |= 16;
+ }
+ }
/* Encode a drag event. */
if (is_drag) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]