2007-03-19 Chris Toshok <toshok@ximian.com>
commitcdd7501c49c53cc4aac07034e1d1e8aa72a140a4
authorChris Toshok <toshok@novell.com>
Mon, 19 Mar 2007 20:49:59 +0000 (19 20:49 -0000)
committerChris Toshok <toshok@novell.com>
Mon, 19 Mar 2007 20:49:59 +0000 (19 20:49 -0000)
tree23eb31886aaf0f69a4c566ce534778c041ee1b28
parent9e8d4241185fe7e4da51f4def41dbf3af88b5753
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.

svn path=/trunk/mcs/; revision=74635
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs