Fixed an issue where WMInput did not detach on the Destroy message, causing the application to stay open.

This commit is contained in:
the_fiddler 2008-01-14 23:44:22 +00:00
parent 935db198ea
commit 7b0ff73c85

View file

@ -134,6 +134,16 @@ namespace OpenTK.Platform.Windows
}
}
break;
case WindowMessage.DESTROY:
Debug.Print("Input window detached from parent {0}.", Handle);
ReleaseHandle();
break;
case WindowMessage.QUIT:
Debug.WriteLine("Input window quit.");
this.Dispose();
break;
}
base.WndProc(ref msg);