From bca9517a67bb30b2d39cc3697fd64926a31a9325 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 7 Sep 2001 20:18:55 +0000 Subject: [PATCH] Fix mouse hiding on keypresses, which was failing due to the Unicode patch having done something bizarre to the semantics of TranslateKey. git-svn-id: svn://svn.tartarus.org/sgt/putty@1233 cda61777-01e9-0310-a592-d414129be87e --- window.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/window.c b/window.c index e2107ec3..49288631 100644 --- a/window.c +++ b/window.c @@ -1864,17 +1864,18 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, if (len == -1) return DefWindowProc(hwnd, message, wParam, lParam); - /* - * We need not bother about stdin backlogs here, - * because in GUI PuTTY we can't do anything about - * it anyway; there's no means of asking Windows to - * hold off on KEYDOWN messages. We _have_ to - * buffer everything we're sent. - */ - ldisc_send(buf, len); - - if (len > 0) + if (len > 0) { + /* + * We need not bother about stdin backlogs + * here, because in GUI PuTTY we can't do + * anything about it anyway; there's no means + * of asking Windows to hold off on KEYDOWN + * messages. We _have_ to buffer everything + * we're sent. + */ + ldisc_send(buf, len); show_mouseptr(0); + } } } return 0; @@ -3026,6 +3027,7 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam, lpage_send(kbd_codepage, cbuf + !left_alt, 1 + !!left_alt); } + show_mouseptr(0); } /* This is so the ALT-Numpad and dead keys work correctly. */ -- 2.11.0