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 42c205db00
commit 5498022742

View file

@ -134,6 +134,16 @@ namespace OpenTK.Platform.Windows
} }
} }
break; 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); base.WndProc(ref msg);