mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-21 06:14:10 +00:00
Win32: Handle all Windows messages, and ignore those with inappropriate HWNDs
This commit is contained in:
parent
c3733213c6
commit
67c4634992
1 changed files with 3 additions and 2 deletions
|
|
@ -240,13 +240,14 @@ void handleMessages(void)
|
|||
MSG msg;
|
||||
while (PeekMessage(
|
||||
&msg, // message information
|
||||
display_hwnd, // handle to window
|
||||
NULL, // handle to window
|
||||
0, // first message
|
||||
0, // last message
|
||||
PM_REMOVE // removal options
|
||||
))
|
||||
{
|
||||
DispatchMessage(&msg);
|
||||
if (display_hwnd != NULL && msg.hwnd == display_hwnd)
|
||||
DispatchMessage(&msg);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue