Index: window.c
===================================================================
RCS file: /cvs/gnome/libwnck/libwnck/window.c,v
retrieving revision 1.63
diff -u -r1.63 window.c
--- window.c	11 Feb 2006 08:29:51 -0000	1.63
+++ window.c	24 Feb 2006 20:36:44 -0000
@@ -2168,7 +2168,8 @@
   
   if (_wnck_get_window (window->priv->xwindow,
                         _wnck_atom_get ("WM_TRANSIENT_FOR"),
-                        &parent))
+                        &parent) &&
+      parent != window->priv->xwindow)
     {
       window->priv->transient_for = parent;
 
