Index: metacity/ChangeLog
===================================================================
RCS file: /export/cvs/head/metacity/ChangeLog,v
retrieving revision 1.931
diff -p -u -5 -r1.931 ChangeLog
--- metacity/ChangeLog	2005/01/03 23:50:10	1.931
+++ metacity/ChangeLog	2005/01/05 12:56:06
@@ -1,5 +1,11 @@
+2005-01-05  Leena Gunda  <leena.gunda@wipro.com>
+
+	* src/window.c (meta_window_unmaximize): Restore the wireframe
+	rectangle co-ordinates to saved window co-ordinates. Fixes
+	bug #161236.
+
 2005-01-03  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
 	* src/Makefile.am (install-data-local): Install schema data from
 	builddir not srcdir.
 
Index: metacity/src/window.c
===================================================================
RCS file: /export/cvs/head/metacity/src/window.c,v
retrieving revision 1.359
diff -p -u -5 -r1.359 window.c
--- metacity/src/window.c	2004/12/28 06:01:42	1.359
+++ metacity/src/window.c	2005/01/05 12:56:06
@@ -1989,10 +1989,15 @@ meta_window_unmaximize (MetaWindow  *win
                                window->saved_rect.x,
                                window->saved_rect.y,
                                window->saved_rect.width,
                                window->saved_rect.height);
 
+      if (window->display->grab_wireframe_active)
+        {
+          window->display->grab_wireframe_rect = window->saved_rect;
+        }
+
       recalc_window_features (window);
       set_net_wm_state (window);
     }
 }
 
