mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 01:15:30 +00:00
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
|
@ -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