Index: src/window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.381
diff -p -u -r1.381 window.c
--- src/window.c	22 Feb 2005 02:11:25 -0000	1.381
+++ src/window.c	23 Feb 2005 06:08:20 -0000
@@ -648,7 +648,7 @@ meta_window_new_with_attrs (MetaDisplay 
       parent = meta_display_lookup_x_window (window->display,
                                              window->xtransient_for);
 
-      if (parent)
+      if (parent && parent->workspace)
         {
           meta_topic (META_DEBUG_PLACEMENT,
                       "Putting window %s on same workspace as parent %s\n",
