From 638df7fc8851f0175fefe88ab65d84c0e6fd9589 Mon Sep 17 00:00:00 2001 From: David le Blanc Date: Sat, 10 Sep 2022 13:56:32 +1000 Subject: [PATCH] issue #344 - xterm mouse mode not detected correctly. --- 0.76_My_PuTTY/terminal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/0.76_My_PuTTY/terminal.c b/0.76_My_PuTTY/terminal.c index 471492e..74f359a 100644 --- a/0.76_My_PuTTY/terminal.c +++ b/0.76_My_PuTTY/terminal.c @@ -3042,7 +3042,11 @@ static void insch(Terminal *term, int n) static void term_update_raw_mouse_mode(Terminal *term) { +#ifdef MOD_PERSO + bool want_raw = (term->xterm_mouse_mode && !term->xterm_mouse_forbidden); +#else bool want_raw = (term->xterm_mouse != 0 && !term->xterm_mouse_forbidden); +#endif win_set_raw_mouse_mode(term->win, want_raw); term->win_pointer_shape_pending = true; term->win_pointer_shape_raw = want_raw;