--- sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c 2006/03/15 15:16:18 1139 +++ sourceforge.net/branches/seamlessrdp-branch/rdesktop/xwin.c 2006/03/15 15:27:24 1140 @@ -3084,8 +3084,11 @@ XFree(sizehints); } + /* Handle popups without parents through some ewm hints */ + if (parent == 0xFFFFFFFF) + ewmh_set_window_popup(wnd); /* Set WM_TRANSIENT_FOR, if necessary */ - if ((parent == 0x00000000) || (parent == 0xFFFFFFFF)) + else if (parent != 0x00000000) { sw_parent = seamless_get_window_by_id(parent); if (sw_parent) @@ -3094,9 +3097,6 @@ warning("ui_seamless_create_window: No parent window 0x%lx\n", parent); } - /* Handle popups without parents through some ewm hints */ - if (parent == 0xFFFFFFFF) - ewmh_set_window_popup(wnd); /* FIXME: Support for Input Context:s */