Index: src/window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.433
diff -u -p -r1.433 window.c
--- src/window.c	16 Apr 2006 02:20:41 -0000	1.433
+++ src/window.c	16 Apr 2006 17:24:58 -0000
@@ -116,6 +116,7 @@ static gboolean queue_calc_showing_func 
 static void meta_window_apply_session_info (MetaWindow                  *window,
                                             const MetaWindowSessionInfo *info);
 
+static void unminimize_window_and_all_transient_parents (MetaWindow *window);
 static void     unmaximize_window_before_freeing (MetaWindow        *window);
 
 #ifdef WITH_VERBOSE_MODE
@@ -743,6 +744,11 @@ meta_window_new_with_attrs (MetaDisplay 
   meta_window_foreach_transient (window,
                                  queue_calc_showing_func,
                                  NULL);
+  /* See bug 334899; if a window is closed from the window list while it is
+   * minimized and pops up a confirmation of some kind, it will appear locked
+   * until it is unminimized.
+   */
+  unminimize_window_and_all_transient_parents(window);
 
   meta_error_trap_pop (display, FALSE); /* pop the XSync()-reducing trap */
   meta_display_ungrab (display);
