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:
parent
95f39af2d3
commit
e6cb9fee3b
9
xwin.c
9
xwin.c
@ -2993,7 +2993,7 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
|
||||
XSetWindowAttributes attribs;
|
||||
XClassHint *classhints;
|
||||
long input_mask;
|
||||
seamless_window *sw;
|
||||
seamless_window *sw, *sw_parent;
|
||||
|
||||
get_window_attribs(&attribs);
|
||||
|
||||
@ -3019,6 +3019,13 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user