Mercurial > emacs
comparison src/w32term.c @ 15242:56c035c36875
(w32_read_socket): Mask out lower 4 bits of wParam
for WM_SYSCOMMAND messages.
author | Geoff Voelker <voelker@cs.washington.edu> |
---|---|
date | Fri, 17 May 1996 06:12:35 +0000 |
parents | a270351f6e0c |
children | 6caf08bd290c |
comparison
equal
deleted
inserted
replaced
15241:9304a470dd2d | 15242:56c035c36875 |
---|---|
2625 else if (f == dpyinfo->win32_focus_frame) | 2625 else if (f == dpyinfo->win32_focus_frame) |
2626 x_new_focus_frame (dpyinfo, 0); | 2626 x_new_focus_frame (dpyinfo, 0); |
2627 | 2627 |
2628 break; | 2628 break; |
2629 case WM_SYSCOMMAND: | 2629 case WM_SYSCOMMAND: |
2630 switch (msg.msg.wParam) | 2630 switch (msg.msg.wParam & 0xfff0) /* Lower 4 bits used by Windows. */ |
2631 { | 2631 { |
2632 case SC_CLOSE: | 2632 case SC_CLOSE: |
2633 f = x_window_to_frame (dpyinfo, msg.msg.hwnd); | 2633 f = x_window_to_frame (dpyinfo, msg.msg.hwnd); |
2634 | 2634 |
2635 if (f) | 2635 if (f) |