Author: pbartok
Date: 2006-08-29 15:21:03 -0400 (Tue, 29 Aug 2006)
New Revision: 64519

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
2006-08-29  Peter Dennis Bartok  <[EMAIL PROTECTED]> 

        * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-29 18:52:02 UTC (rev 64518)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-08-29 19:21:03 UTC (rev 64519)
@@ -1,3 +1,7 @@
+2006-08-29  Peter Dennis Bartok  <[EMAIL PROTECTED]> 
+
+       * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
+
 2006-08-29  Chris Toshok  <[EMAIL PROTECTED]>
 
        * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-08-29 18:52:02 UTC (rev 64518)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs    
2006-08-29 19:21:03 UTC (rev 64519)
@@ -751,6 +751,15 @@
                                decorations = 0;
                        }
 
+                       if ((cp.Style & (int)WindowStyles.WS_DLGFRAME) == 
(int)WindowStyles.WS_DLGFRAME) {
+                               decorations ^= MotifDecorations.Menu;
+                       }
+
+                       if ((cp.Style & (int)(WindowStyles.WS_CAPTION | 
WindowStyles.WS_BORDER | WindowStyles.WS_DLGFRAME)) == 0) {
+                               functions = 0;
+                               decorations = 0;
+                       }
+
                        if ((functions & MotifFunctions.Resize) == 0) {
                                hwnd.fixed_size = true;
                                XplatUI.SetWindowMinMax(hwnd.Handle, new 
Rectangle(cp.X, cp.Y, cp.Width, cp.Height), new Size(cp.Width, cp.Height), new 
Size(cp.Width, cp.Height));

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

Reply via email to