[vte/vte-0-54] 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-54] emulation: Do not encode keyboard modifiers in X10 mouse mode
- Date: Mon, 8 Apr 2019 21:09:27 +0000 (UTC)
commit 48664150872e7583c9bcdff5213adb24f8f741ef
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 e7b9ceee..444b799c 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5319,15 +5319,17 @@ Terminal::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]