termiointernals: mouse wheel is not reported in X10 mode

This commit is contained in:
Boris Faure 2019-03-03 15:47:37 +01:00
parent bbe4960c2c
commit 72ff9cbe3c
1 changed files with 3 additions and 2 deletions

View File

@ -2149,12 +2149,13 @@ termio_internal_mouse_wheel(Termio *sd,
int cx = 0, cy = 0;
termio_cursor_to_xy(sd, ev->canvas.x, ev->canvas.y, &cx, &cy);
if (sd->pty->mouse_mode == MOUSE_X10)
return;
switch (sd->pty->mouse_ext)
{
case MOUSE_EXT_NONE:
if ((cx < (0xff - ' ')) && (cy < (0xff - ' ')) &&
(sd->pty->mouse_mode != MOUSE_X10))
if ((cx < (0xff - ' ')) && (cy < (0xff - ' ')))
{
int btn = (ev->z >= 0) ? 1 + 64 : 64;