[vte/vte-0-54] emulation: Fix upper coordinate limit for legacy mouse events



commit 11a9378438981003e26e49faa19e3f43c5edaf93
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon Sep 3 13:34:45 2018 +0200

    emulation: Fix upper coordinate limit for legacy mouse events
    
    https://gitlab.gnome.org/GNOME/vte/issues/36
    (cherry picked from commit dabedec3df2134e8888e9c4f9a003473c561611f)

 src/vte.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 75f32990..baa6acfd 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5342,7 +5342,7 @@ Terminal::feed_mouse_event(vte::grid::coords const& rowcol /* confined */,
        } else if (m_modes_private.URXVT_MOUSE_EXT()) {
                /* urxvt's extended mode (1015) */
                 send(VTE_REPLY_URXVT_MOUSE_EXT_REPORT, {32 + cb, (int)cx, (int)cy});
-       } else if (cx <= 231 && cy <= 231) {
+       } else if (cx <= 223 && cy <= 223) {
                /* legacy mode */
                len = g_snprintf(buf, sizeof(buf), _VTE_CAP_CSI "M%c%c%c", 32 + cb, 32 + (guchar)cx, 32 + 
(guchar)cy);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]