2008-11-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 17 Nov 2008 13:53:59 +0000 (13:53 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Mon, 17 Nov 2008 13:53:59 +0000 (13:53 -0000)
* XplatUIX11.cs: Forms without borders should be able to change its
size - specially they should be able to be maximized, adding the
respective MotifFunctions.Resize bit when setting window properties as
well as *not* marking the Hwnd as size fixed.
Fixes #444347.

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

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

index a655292c755ad2ac5aafa76ddb843eeba920c54f..7a1c324798e1c208b916259dbd027607821b4bd1 100644 (file)
@@ -1,3 +1,11 @@
+2008-11-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * XplatUIX11.cs: Forms without borders should be able to change its
+       size - specially they should be able to be maximized, adding the
+       respective MotifFunctions.Resize bit when setting window properties as
+       well as *not* marking the Hwnd as size fixed.
+       Fixes #444347.
+
 2008-11-12  Jonathan Pobst  <monkey@jpobst.com>
 
        * DataGridViewCellStyle.cs: Allow SelectionBackColor to have
index 7e53d863bc7f2b27dea2fc01a32b94156ff0446c..4db99064b4229ccb00d8461a7d50e527b252be2f 100644 (file)
@@ -1020,7 +1020,8 @@ namespace System.Windows.Forms {
                                   is ignored by metacity. */
                                functions |= MotifFunctions.Move | MotifFunctions.Resize | MotifFunctions.Minimize | MotifFunctions.Maximize;
                        } else if (form != null && form.FormBorderStyle == FormBorderStyle.None) {
-                               functions |= MotifFunctions.All;
+                               /* allow borderless window to be maximized */
+                               functions |= MotifFunctions.All | MotifFunctions.Resize;
                        } else {
                                if (StyleSet (cp.Style, WindowStyles.WS_CAPTION)) {
                                        functions |= MotifFunctions.Move;