Commit 027e8c15 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Don't send move events for normal mouse tracking

xterm's DECSET 1000 requests justs press and release notifications, so
do not send move events on this mode.

BUG: 302731
parent d70fc5ee
......@@ -1063,6 +1063,11 @@ void Vt102Emulation::sendMouseEvent(int cb, int cx, int cy, int eventType)
// Don't send move/drag events if only press and release requested
if (eventType == 1 && getMode(MODE_Mouse1000)) {
// With the exception of the 1006 mode, button release is encoded in cb.
// Note that if multiple extensions are enabled, the 1006 is used, so it's okay to check for only that.
if (eventType == 2 && !getMode(MODE_Mouse1006)) {
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