Author: andreia
Date: 2007-11-21 09:25:52 -0500 (Wed, 21 Nov 2007)
New Revision: 90079

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: Do not treat tool windows as if they have no 
window manager, since that stretches the drawing area to include
the window decorations, and they get hidden. Reverts r84444 and fixes
#335849 and #342790 (mdi and pdn3 regression)

2007-11-21  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        
2007-11-21 13:26:40 UTC (rev 90078)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-11-21 14:25:52 UTC (rev 90079)
@@ -1,3 +1,10 @@
+2007-11-21  Andreia Gaita <[EMAIL PROTECTED]>
+
+       * XPlatUIX11.cs: Do not treat tool windows as if they have no 
+       window manager, since that stretches the drawing area to include
+       the window decorations, and they get hidden. Reverts r84444 and fixes
+       #335849 and #342790 (mdi and pdn3 regression)
+
 2007-11-20  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
        * ListView.cs: When setting focused item, try to give focus to the

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2007-11-21 13:26:40 UTC (rev 90078)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2007-11-21 14:25:52 UTC (rev 90079)
@@ -783,7 +783,7 @@
                        if (form != null)
                                cp = form.GetCreateParams ();
 
-                       if (form != null && (form.window_manager == null || 
cp.IsSet (WindowExStyles.WS_EX_TOOLWINDOW))) {
+                       if (form != null && (form.window_manager == null)) {
                                Hwnd.Borders borders = Hwnd.GetBorders (cp, 
null);
                                Rectangle xrect = rect;
 
@@ -818,7 +818,7 @@
                         * we're painting in only)
                         */
                        Form form = cp.control as Form;
-                       if (form != null && (form.window_manager == null || 
cp.IsSet (WindowExStyles.WS_EX_TOOLWINDOW))) {
+                       if (form != null && (form.window_manager == null)) {
                                Hwnd.Borders borders = Hwnd.GetBorders (cp, 
null);
                                Size xrect = size;
 
@@ -843,7 +843,7 @@
                         */
                        Size rect = new Size (xWidth, xHeight);
                        Form form = cp.control as Form;
-                       if (form != null && (form.window_manager == null || 
cp.IsSet (WindowExStyles.WS_EX_TOOLWINDOW))) {
+                       if (form != null && (form.window_manager == null)) {
                                Hwnd.Borders borders = Hwnd.GetBorders (cp, 
null);
                                Size xrect = rect;
 

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

Reply via email to