Author: toshok
Date: 2006-11-13 15:49:40 -0500 (Mon, 13 Nov 2006)
New Revision: 67787

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIStructs.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
        * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
        #79898.  force a reference to the Region to stick around so the
        unmanaged object isn't collected (rendering our handle in the MSG
        stale).

2006-11-13  Chris Toshok  <[EMAIL PROTECTED]>




Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-13 20:12:18 UTC (rev 67786)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-13 20:49:40 UTC (rev 67787)
@@ -1,7 +1,14 @@
 2006-11-13  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
+       #79898.  force a reference to the Region to stick around so the
+       unmanaged object isn't collected (rendering our handle in the MSG
+       stale).
+
+2006-11-13  Chris Toshok  <[EMAIL PROTECTED]>
+
        * XplatUIX11.cs: fix #79917 for window managers which support
-       _NET_WM_NAME.  Leave an XXX for non-compliant wm's, since we're
+
        using XStoreName on the raw utf8, and we need to convert to
        COMPOUND_TEXT if it's non-latin1.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIStructs.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIStructs.cs    
    2006-11-13 20:12:18 UTC (rev 67786)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIStructs.cs    
    2006-11-13 20:49:40 UTC (rev 67787)
@@ -422,6 +422,7 @@
                internal IntPtr lParam;
                internal uint   time;  
                internal POINT  pt;
+               internal object refobject;
        }
 
        internal enum WindowActiveFlags {

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-11-13 20:12:18 UTC (rev 67786)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-11-13 20:49:40 UTC (rev 67787)
@@ -3659,6 +3659,7 @@
                                                IntPtr hrgn = region.GetHrgn 
(null); // Graphics object isn't needed
                                                msg.message = Msg.WM_NCPAINT;
                                                msg.wParam = hrgn == 
IntPtr.Zero ? (IntPtr)1 : hrgn;
+                                               msg.refobject = region;
                                                break;
                                        }
                                        #if DriverDebugExtra

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

Reply via email to