mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-12 18:13:50 -05:00
Make sure we always unhide the mouse pointer when the System menu is
displayed. [originally from svn r1393]
This commit is contained in:
parent
c2ae9e5537
commit
cce8878289
19
window.c
19
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user