Index: window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.345
diff -u -p -r1.345 window.c
--- window.c	15 Sep 2004 15:54:51 -0000	1.345
+++ window.c	29 Sep 2004 07:42:41 -0000
@@ -2907,12 +2907,8 @@ check_maximize_to_work_area (MetaWindow 
   
   meta_window_get_outer_rect (window, &rect);
 
-  if ( rect.x >= work_area->x &&
-       rect.y >= work_area->y &&
-       (((work_area->width - work_area->x) - rect.width) <
-        window->size_hints.width_inc) &&
-       (((work_area->height - work_area->y) - rect.height) <
-        window->size_hints.height_inc) )
+  if ( rect.width  >= work_area->width &&
+       rect.height >= work_area->height )
     meta_window_maximize (window);
 }
 
