Author: andreia
Date: 2008-02-18 14:19:40 -0500 (Mon, 18 Feb 2008)
New Revision: 96095
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
* XplatUIX11.cs: Create FosterParent with border width at 0.
With the previous value of 4, everytime a control got reparented
from parent = null, its location would be shifted right and
down by 4, since these coordinates would be offset by the
FosterParent's border width.
2008-02-18 Andreia Gaita <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-18 19:14:46 UTC (rev 96094)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-18 19:19:40 UTC (rev 96095)
@@ -1,3 +1,11 @@
+2008-02-18 Andreia Gaita <[EMAIL PROTECTED]>
+
+ * XplatUIX11.cs: Create FosterParent with border width at 0.
+ With the previous value of 4, everytime a control got reparented
+ from parent = null, it's location would be shifted right and
+ down by 4, since these coordinates would be offset by the
+ FosterParent's border width.
+
2008-02-18 Ivan N. Zlatev <[EMAIL PROTECTED]>
* Control.cs: During diposing firstly remove ourselfes from
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2008-02-18 19:14:46 UTC (rev 96094)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2008-02-18 19:19:40 UTC (rev 96095)
@@ -440,7 +440,8 @@
DefaultColormap =
XDefaultColormap(DisplayHandle, ScreenNo);
// Create the foster parent
- FosterParent=XCreateSimpleWindow(DisplayHandle,
RootWindow, 0, 0, 1, 1, 4, UIntPtr.Zero, UIntPtr.Zero);
+ // it is important that border_width is kept in
synch with the other XCreateWindow calls
+ FosterParent=XCreateSimpleWindow(DisplayHandle,
RootWindow, 0, 0, 1, 1, 0, UIntPtr.Zero, UIntPtr.Zero);
if (FosterParent==IntPtr.Zero) {
Console.WriteLine("XplatUIX11
Constructor failed to create FosterParent");
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches