--- sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c 2006/03/10 12:56:37 1100 +++ sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c 2006/03/10 12:56:38 1101 @@ -2993,7 +2993,7 @@ XSetWindowAttributes attribs; XClassHint *classhints; long input_mask; - seamless_window *sw; + seamless_window *sw, *sw_parent; get_window_attribs(&attribs); @@ -3019,6 +3019,13 @@ XFree(classhints); } + /* Set WM_TRANSIENT_FOR, if necessary */ + sw_parent = seamless_get_window_by_id(parent); + if (sw_parent) + XSetTransientForHint(g_display, wnd, sw_parent->wnd); + else + warning("ui_seamless_create_window: No parent window 0x%lx\n", parent); + /* FIXME: Support for Input Context:s */ get_input_mask(&input_mask);