mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 21:17:54 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue