ui_seamless_create_window: Only search for parent if not zero

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1102 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-10 13:32:18 +00:00
parent e6cb9fee3b
commit b557b2dc63

3
xwin.c
View File

@ -3020,11 +3020,14 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
}
/* Set WM_TRANSIENT_FOR, if necessary */
if (parent)
{
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 */