[client] spice: better align the spice api for x11 cliboard integration

This commit is contained in:
Geoffrey McRae
2019-02-22 19:51:14 +11:00
parent 689a1de69b
commit 1a66c11091
3 changed files with 55 additions and 22 deletions

View File

@@ -487,10 +487,11 @@ static inline const uint32_t mapScancode(SDL_Scancode scancode)
}
bool spiceClipboardNotice(const SpiceDataType type)
void spiceClipboardNotice(const SpiceDataType type)
{
// we only support text data for now
return (type == SPICE_DATA_TEXT);
if (type == SPICE_DATA_TEXT)
spice_clipboard_request(type);
}
void spiceClipboardData(const SpiceDataType type, uint8_t * buffer, uint32_t size)