Author: toshok
Date: 2006-10-31 14:05:59 -0500 (Tue, 31 Oct 2006)
New Revision: 67184

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

        * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
        convention of clearing hwnd.ClientRect when we set the
        width/height (so it'll be recalculated by Hwnd).



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-31 18:19:41 UTC (rev 67183)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-10-31 19:05:59 UTC (rev 67184)
@@ -1,3 +1,9 @@
+2006-10-31  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
+       convention of clearing hwnd.ClientRect when we set the
+       width/height (so it'll be recalculated by Hwnd).
+
 2006-10-31     Andreia Gaita <[EMAIL PROTECTED]>
 
        * ContainerControl.cs: reversed Contains check from

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-10-31 18:19:41 UTC (rev 67183)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-10-31 19:05:59 UTC (rev 67184)
@@ -2058,9 +2058,9 @@
                                        if (true /* the window manager supports 
NET_ACTIVE_WINDOW */) {
                                                
SendNetWMMessage(hwnd.whole_window, _NET_ACTIVE_WINDOW, (IntPtr)1, IntPtr.Zero, 
IntPtr.Zero);
                                        }
-                                       else {
-                                               //XRaiseWindow(DisplayHandle, 
handle);
-                                       }
+//                                     else {
+//                                             XRaiseWindow(DisplayHandle, 
handle);
+//                                     }
                                }
                        }
                }
@@ -4651,6 +4651,7 @@
                        hwnd.y = y;
                        hwnd.width = width;
                        hwnd.height = height;
+                       hwnd.ClientRect = Rectangle.Empty;
                }
 
                internal override void SetWindowState(IntPtr handle, 
FormWindowState state) {
@@ -4797,7 +4798,6 @@
 
                        if (SystrayMgrWindow != IntPtr.Zero) {
                                XSizeHints      size_hints;
-                               IntPtr          dummy;
                                Hwnd            hwnd;
 
                                hwnd = Hwnd.ObjectFromHandle(handle);

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

Reply via email to