Commit 11a93784 authored by Egmont Koblinger's avatar Egmont Koblinger

emulation: Fix upper coordinate limit for legacy mouse events

#36
(cherry picked from commit dabedec3)
parent 0851d359
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment