improved find logical window manager parent