Index: metacity/ChangeLog
===================================================================
RCS file: /export/cvs/gnome-2.0/metacity/ChangeLog,v
retrieving revision 1.578
diff -p -u -5 -r1.578 ChangeLog
--- metacity/ChangeLog	2002/12/23 11:31:22	1.578
+++ metacity/ChangeLog	2003/01/03 15:11:38
@@ -1,5 +1,10 @@
+2003-01-03  Arvind Samptur <arvind.samptur@wipro.com>
+	* src/window.c: (constrain_position) don't apply
+	offscreen height difference. This would get the
+	window under the panel on a resize or a move.
+
 2002-12-19  Ross Burton  <ross@burtonini.com>
 
 	* doc/metacity-theme.dtd: Fix a typo and loosen the requirements
 	for the resize element.
 
Index: metacity/src/window.c
===================================================================
RCS file: /export/cvs/gnome-2.0/metacity/src/window.c,v
retrieving revision 1.254
diff -p -u -5 -r1.254 window.c
--- metacity/src/window.c	2002/12/19 20:18:54	1.254
+++ metacity/src/window.c	2003/01/03 15:11:41
@@ -5841,12 +5841,18 @@ constrain_position (MetaWindow        *w
       offscreen_h = offscreen_h - se_y;
 
       /* Now change NW limit to reflect amount offscreen in SE direction */
       if (offscreen_w > 0)
         nw_x -= offscreen_w;
+
+#if 0
+      /* The window could get under the top panel on a resize or move
+       * when some part of the window is below the screen.
+      */
       if (offscreen_h > 0)
         nw_y -= offscreen_h;
+#endif
       
       /* Limit movement off the right/bottom.
        * Remember, we're constraining StaticGravity position.
        */
       if (window->frame)
