mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 20:57:06 +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:
parent
eb5c588af9
commit
4c60409aaf
@ -257,7 +257,7 @@ static int appThread(void * opaque)
|
|||||||
{
|
{
|
||||||
RegisterTrayIcon();
|
RegisterTrayIcon();
|
||||||
int result = app_main(app.argc, app.argv);
|
int result = app_main(app.argc, app.argv);
|
||||||
DestroyWindow(app.messageWnd);
|
SendMessage(app.messageWnd, WM_CLOSE, 0, 0);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user