mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-09 15:50:21 +00:00
(w32_read_socket): Mask out lower 4 bits of wParam
for WM_SYSCOMMAND messages.
This commit is contained in:
parent
efa15de41d
commit
ce2d626fab
@ -2627,7 +2627,7 @@ w32_read_socket (sd, bufp, numchars, waitp, expected)
|
||||
|
||||
break;
|
||||
case WM_SYSCOMMAND:
|
||||
switch (msg.msg.wParam)
|
||||
switch (msg.msg.wParam & 0xfff0) /* Lower 4 bits used by Windows. */
|
||||
{
|
||||
case SC_CLOSE:
|
||||
f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
|
||||
|
Loading…
Reference in New Issue
Block a user