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:
parent
6903b4e52d
commit
95f39af2d3
2
proto.h
2
proto.h
@ -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);
|
||||
|
11
seamless.c
11
seamless.c
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user