From 0d6dcf38500764b883012c61697b9715e6dbe5fc Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 21 Nov 2001 22:31:05 +0000 Subject: [PATCH] Make sure we always unhide the mouse pointer when the System menu is displayed. git-svn-id: svn://svn.tartarus.org/sgt/putty@1393 cda61777-01e9-0310-a592-d414129be87e --- window.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/window.c b/window.c index 14966504..f0bbc7c2 100644 --- a/window.c +++ b/window.c @@ -1687,14 +1687,23 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, case IDM_ABOUT: showabout(hwnd); break; + case SC_MOUSEMENU: + /* + * We get this if the System menu has been activated + * using the mouse. + */ + show_mouseptr(1); + break; case SC_KEYMENU: /* - * We get this if the System menu has been activated. - * This might happen from within TranslateKey, in which - * case it really wants to be followed by a `space' - * character to actually _bring the menu up_ rather - * than just sitting there in `ready to appear' state. + * We get this if the System menu has been activated + * using the keyboard. This might happen from within + * TranslateKey, in which case it really wants to be + * followed by a `space' character to actually _bring + * the menu up_ rather than just sitting there in + * `ready to appear' state. */ + show_mouseptr(1); /* make sure pointer is visible */ if( lParam == 0 ) PostMessage(hwnd, WM_CHAR, ' ', 0); break; -- 2.11.0