Parsing the new CREATE command, with parent parameter.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1097 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-10 12:44:32 +00:00
parent 6903b4e52d
commit 95f39af2d3
3 changed files with 10 additions and 5 deletions

View File

@ -272,7 +272,7 @@ void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy);
void ui_begin_update(void);
void ui_end_update(void);
void ui_seamless_toggle(void);
void ui_seamless_create_window(unsigned long id, unsigned long flags);
void ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long flags);
void ui_seamless_destroy_window(unsigned long id, unsigned long flags);
void ui_seamless_move_window(unsigned long id, int x, int y, int width, int height,
unsigned long flags);

View File

@ -82,18 +82,23 @@ seamless_process_line(const char *line, void *data)
if (!strcmp("CREATE", tok1))
{
if (!tok3)
unsigned long parent;
if (!tok4)
return False;
id = strtol(tok2, &endptr, 16);
if (*endptr)
return False;
flags = strtol(tok3, &endptr, 16);
parent = strtol(tok3, &endptr, 16);
if (*endptr)
return False;
ui_seamless_create_window(id, flags);
flags = strtol(tok4, &endptr, 16);
if (*endptr)
return False;
ui_seamless_create_window(id, parent, flags);
}
else if (!strcmp("DESTROY", tok1))
{

2
xwin.c
View File

@ -2987,7 +2987,7 @@ ui_seamless_toggle()
}
void
ui_seamless_create_window(unsigned long id, unsigned long flags)
ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long flags)
{
Window wnd;
XSetWindowAttributes attribs;