2007-03-19 Chris Toshok <toshok@ximian.com>
commit5ae8919fb5ef827f215ff6305d1d63144fd6de5d
authortoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Mon, 19 Mar 2007 20:49:59 +0000 (19 20:49 +0000)
committertoshok <toshok@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Mon, 19 Mar 2007 20:49:59 +0000 (19 20:49 +0000)
tree814739ec09767af37e8764efa02ec76260ed719a
parent8be4b169054aa649953e31dd50f5899d3949ce87
2007-03-19  Chris Toshok  <toshok@ximian.com>

[ Fixes #81773, and *seems* to fix #81553 as well ]

* XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
AccumulateDestroyedHandles.  We need to do it *after* we send
WM_DESTROY, as the user's code can access Control.Handle in
OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
move the WM_DESTROY/zombie handling to before the call to
XDestroyWindow.  For some reason without this ordering
FormTest.RecreateHandle hangs.  This ordering is semantically
equivalent, however, as XDestroyWindow is async anyway.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@74635 e3ebcda4-bce8-0310-ba0a-eca2169e7518
class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs