Post a close message instead of destroying the window outright, when the user calls the Close() method. Ensures that the user can stop the exit sequence through the IsClosing event.
This commit is contained in:
parent
b896d8952c
commit
01a8748416
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
public void Close()
|
||||
{
|
||||
DestroyWindow();
|
||||
Functions.PostMessage(window.WindowHandle, WindowMessage.CLOSE, IntPtr.Zero, IntPtr.Zero);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue