Added clipboard support.

This commit is contained in:
Michael Jumper
2010-09-11 14:53:28 -07:00
parent 72ba6fcaa0
commit e1a6378607
7 changed files with 118 additions and 3 deletions

View File

@@ -120,6 +120,14 @@ void guac_start_client(guac_client* client) {
);
}
else if (strcmp(instruction.opcode, "clipboard") == 0) {
if (client->clipboard_handler)
client->clipboard_handler(
client,
guac_unescape_string_inplace(instruction.argv[0]) /* data */
);
}
} while ((retval = guac_read_instruction(io, &instruction)) > 0);
if (retval < 0)