Setting WM_TRANSIENT_FOR, when necessary

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1100 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-10 12:56:38 +00:00
parent 95f39af2d3
commit e6cb9fee3b

9
xwin.c
View File

@ -2993,7 +2993,7 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
XSetWindowAttributes attribs; XSetWindowAttributes attribs;
XClassHint *classhints; XClassHint *classhints;
long input_mask; long input_mask;
seamless_window *sw; seamless_window *sw, *sw_parent;
get_window_attribs(&attribs); get_window_attribs(&attribs);
@ -3019,6 +3019,13 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
XFree(classhints); 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 */ /* FIXME: Support for Input Context:s */
get_input_mask(&input_mask); get_input_mask(&input_mask);