Index: src/constraints.c
===================================================================
RCS file: /cvs/gnome/metacity/src/constraints.c,v
retrieving revision 1.30
diff -u -p -r1.30 constraints.c
--- src/constraints.c	2 Apr 2006 23:11:25 -0000	1.30
+++ src/constraints.c	13 Apr 2006 17:19:22 -0000
@@ -640,7 +640,7 @@ constrain_maximization (MetaWindow      
                         gboolean            check_only)
 {
   MetaRectangle min_size, max_size, work_area;
-  gboolean hminbad, vminbad, hmaxbad, vmaxbad;
+  gboolean hminbad, vminbad;
   gboolean horiz_equal, vert_equal;
   gboolean constraint_already_satisfied;
 
@@ -657,9 +657,7 @@ constrain_maximization (MetaWindow      
 
   hminbad = work_area.width < min_size.width && window->maximized_horizontally;
   vminbad = work_area.height < min_size.height && window->maximized_vertically;
-  hmaxbad = work_area.width > max_size.width && window->maximized_horizontally;
-  vmaxbad = work_area.height > max_size.height && window->maximized_vertically;
-  if (hminbad || vminbad || hmaxbad || vmaxbad)
+  if (hminbad || vminbad)
     return TRUE;
 
   /* Determine whether constraint is already satisfied; exit if it is */
@@ -777,6 +775,10 @@ constrain_size_limits (MetaWindow       
   if (priority > PRIORITY_SIZE_HINTS_LIMITS)
     return TRUE;
 
+  /* Size limits don't apply to maximised windows: #327543 */
+  if (window->maximized_horizontally || window->maximized_vertically)
+    return TRUE;
+
   /* Determine whether constraint applies; exit if it doesn't.
    *
    * Note: The old code didn't apply this constraint for fullscreen or
