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:
parent
e6cb9fee3b
commit
b557b2dc63
13
xwin.c
13
xwin.c
@ -3020,11 +3020,14 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
|
||||
}
|
||||
|
||||
/* 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);
|
||||
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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user