Author: rolf
Date: 2007-04-03 05:20:28 -0400 (Tue, 03 Apr 2007)
New Revision: 75333
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: SetWMStyles: If the control is a form with
FormBorderStyle = None, don't give the window any decorations.
Fixes #81276.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 08:59:23 UTC (rev 75332)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-04-03 09:20:28 UTC (rev 75333)
@@ -1,5 +1,11 @@
2007-04-03 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * XplatUIX11.cs: SetWMStyles: If the control is a form with
+ FormBorderStyle = None, don't give the window any decorations.
+ Fixes #81276.
+
+2007-04-03 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
* CreateParams.cs: Fix IsSet, wasn't working correctly when the style
to check for is a mix of several styles (such as WS_CAPTION for
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2007-04-03 08:59:23 UTC (rev 75332)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2007-04-03 09:20:28 UTC (rev 75333)
@@ -939,7 +939,7 @@
mwmHints.functions = (IntPtr)0;
mwmHints.decorations = (IntPtr)0;
- if (ExStyleSet (cp.ExStyle,
WindowExStyles.WS_EX_TOOLWINDOW)) {
+ if (ExStyleSet (cp.ExStyle,
WindowExStyles.WS_EX_TOOLWINDOW) || (cp.control is Form && (cp.control as
Form).FormBorderStyle == FormBorderStyle.None)) {
/* tool windows get no window manager
decorations.
*/
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches