Skip to content

Post a WM_NULL message on WM_CLOSE to ensure GetMessage exits when closing via the taskbar preview#747

Closed
Anartzz wants to merge 1 commit intoEpicGamesExt:masterfrom
Anartzz:master
Closed

Post a WM_NULL message on WM_CLOSE to ensure GetMessage exits when closing via the taskbar preview#747
Anartzz wants to merge 1 commit intoEpicGamesExt:masterfrom
Anartzz:master

Conversation

@Anartzz
Copy link
Copy Markdown

@Anartzz Anartzz commented Mar 31, 2026

Context

Closing the app from the taskbar preview while the application is not focused did not properly exit the message loop.
GetMessage remained blocked, preventing the application from shutting down.
image

Solution

Post a WM_NULL message when handling WM_CLOSE to wake up the message loop and allow GetMessage to return.

@mmozeiko
Copy link
Copy Markdown
Collaborator

I fixed the same issue here: #734

@Anartzz
Copy link
Copy Markdown
Author

Anartzz commented Mar 31, 2026

I fixed the same issue here: #734

ok

@Anartzz Anartzz closed this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants