From e6cb9fee3b88d29a0cd93222ea3d0dd4a5ddbb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=85strand?= Date: Fri, 10 Mar 2006 12:56:38 +0000 Subject: [PATCH] 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 --- xwin.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xwin.c b/xwin.c index ce869cb..2eb7421 100644 --- a/xwin.c +++ b/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);