Support for SeamlessRDP SYNCBEGIN/SYNCEND

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1122 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-15 08:41:48 +00:00
parent b198566f5f
commit 4a7a75d402
2 changed files with 35 additions and 0 deletions

View File

@ -196,6 +196,29 @@ seamless_process_line(const char *line, void *data)
{ {
printf("SeamlessRDP:%s\n", line); printf("SeamlessRDP:%s\n", line);
} }
else if (!strcmp("SYNCBEGIN", tok1))
{
if (!tok2)
return False;
flags = strtoul(tok2, &endptr, 0);
if (*endptr)
return False;
ui_seamless_syncbegin(flags);
}
else if (!strcmp("SYNCEND", tok1))
{
if (!tok2)
return False;
flags = strtoul(tok2, &endptr, 0);
if (*endptr)
return False;
/* do nothing, currently */
}
xfree(l); xfree(l);
return True; return True;

12
xwin.c
View File

@ -3214,3 +3214,15 @@ ui_seamless_setstate(unsigned long id, unsigned int state, unsigned long flags)
break; break;
} }
} }
void
ui_seamless_syncbegin(unsigned long flags)
{
/* Destroy all seamless windows */
while (g_seamless_windows)
{
XDestroyWindow(g_display, g_seamless_windows->wnd);
seamless_remove_window(g_seamless_windows);
}
}