* XPlatUIX11.cs: Do not treat tool windows as if they have no
authorAndreia Gaita <avidigal@novell.com>
Wed, 21 Nov 2007 14:25:52 +0000 (14:25 -0000)
committerAndreia Gaita <avidigal@novell.com>
Wed, 21 Nov 2007 14:25:52 +0000 (14:25 -0000)
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 <avidigal@novell.com>

svn path=/trunk/mcs/; revision=90079

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs

index 4f9616ca5c809ffc6f35839c41ae5b565043e768..f2278f4436de9f59aea34894006a1b197ef5cbe5 100644 (file)
@@ -1,3 +1,10 @@
+2007-11-21  Andreia Gaita <avidigal@novell.com>
+
+       * 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 <calberto.cortez@gmail.com>
 
        * ListView.cs: When setting focused item, try to give focus to the
index dcc23f69fb44a0233948ca691417967c0ea35abd..6393e0eb75e3feeeea08b2110bbdb89516023a62 100644 (file)
@@ -783,7 +783,7 @@ namespace System.Windows.Forms {
                        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 @@ namespace System.Windows.Forms {
                         * 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 @@ namespace System.Windows.Forms {
                         */
                        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;