mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[host] windows: use WM_CLOSE to signal window destruction
DestroyWindow can only be invoked on the thread that created the window. All other threads must use WM_CLOSE or another message to signal tell the window to destroy itself.
This commit is contained in:
@@ -257,7 +257,7 @@ static int appThread(void * opaque)
|
||||
{
|
||||
RegisterTrayIcon();
|
||||
int result = app_main(app.argc, app.argv);
|
||||
DestroyWindow(app.messageWnd);
|
||||
SendMessage(app.messageWnd, WM_CLOSE, 0, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user