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:
parent
b198566f5f
commit
4a7a75d402
23
seamless.c
23
seamless.c
@ -196,6 +196,29 @@ seamless_process_line(const char *line, void *data)
|
||||
{
|
||||
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);
|
||||
return True;
|
||||
|
12
xwin.c
12
xwin.c
@ -3214,3 +3214,15 @@ ui_seamless_setstate(unsigned long id, unsigned int state, unsigned long flags)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user