termiointernals: do not emit mouse wheel on mode X10

This commit is contained in:
Boris Faure 2019-03-03 13:20:03 +01:00
parent 72afb80d6e
commit 5a98842d63
1 changed files with 2 additions and 1 deletions

View File

@ -2153,7 +2153,8 @@ termio_internal_mouse_wheel(Termio *sd,
switch (sd->pty->mouse_ext)
{
case MOUSE_EXT_NONE:
if ((cx < (0xff - ' ')) && (cy < (0xff - ' ')))
if ((cx < (0xff - ' ')) && (cy < (0xff - ' ')) &&
(sd->pty->mouse_mode != MOUSE_X10))
{
int btn = (ev->z >= 0) ? 1 + 64 : 64;