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



commit 104486c654bf6f4c51e7ac46358bdf7620d9e277
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 2d26fe62..5b4eb077 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5413,7 +5413,7 @@ VteTerminalPrivate::feed_mouse_event(vte::grid::coords const& rowcol /* confined
        } else if (m_mouse_urxvt_extension) {
                /* urxvt's extended mode (1015) */
                len = g_snprintf(buf, sizeof(buf), _VTE_CAP_CSI "%d;%ld;%ldM", 32 + cb, cx, 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]