Ignoring CREATEs for existing windows - be idempotent.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1121 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-15 08:35:13 +00:00
parent 94d8419910
commit b198566f5f

6
xwin.c
View File

@ -3047,8 +3047,12 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
long input_mask;
seamless_window *sw, *sw_parent;
get_window_attribs(&attribs);
/* Ignore CREATEs for existing windows */
sw = seamless_get_window_by_id(id);
if (sw)
return;
get_window_attribs(&attribs);
attribs.override_redirect = False;
/* FIXME: Do not assume that -1, -1 is outside screen Consider