Author: toshok
Date: 2006-08-29 14:47:08 -0400 (Tue, 29 Aug 2006)
New Revision: 64517

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2006-08-29  Chris Toshok  <[EMAIL PROTECTED]>

        * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-29 18:28:09 UTC (rev 64516)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-29 18:47:08 UTC (rev 64517)
@@ -1,3 +1,7 @@
+2006-08-29  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
+
 2006-08-29  Jackson Harper  <[EMAIL PROTECTED]>
 
        * TreeView.cs: Need to track selected node and highlighted node,

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-08-29 18:28:09 UTC (rev 64516)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-08-29 18:47:08 UTC (rev 64517)
@@ -2686,6 +2686,11 @@
                                ActiveWindow = IntPtr.Zero;
                        }
 
+                       if (FocusWindow == handle) {
+                               SendMessage(handle, Msg.WM_KILLFOCUS, 
IntPtr.Zero, IntPtr.Zero);
+                               FocusWindow = IntPtr.Zero;
+                       }
+
                        
SendWMDestroyMessages(Control.ControlNativeWindow.ControlFromHandle(hwnd.Handle));
 
                        lock (XlibLock) {
@@ -3438,6 +3443,11 @@
                                                        ActiveWindow = 
IntPtr.Zero;
                                                }
 
+                                               if (FocusWindow == 
hwnd.client_window) {
+                                                       
SendMessage(hwnd.client_window, Msg.WM_KILLFOCUS, IntPtr.Zero, IntPtr.Zero);
+                                                       FocusWindow = 
IntPtr.Zero;
+                                               }
+
                                                if (Caret.Window == 
hwnd.client_window) {
                                                        DestroyCaretInternal();
                                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to