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
4482a79e84
commit
ab138bfb37
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