|
@@ -41,6 +41,21 @@ void qemu_clipboard_peer_release(QemuClipboardPeer *peer,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+bool qemu_clipboard_check_serial(QemuClipboardInfo *info, bool client)
|
|
|
+{
|
|
|
+ if (!info->has_serial ||
|
|
|
+ !cbinfo[info->selection] ||
|
|
|
+ !cbinfo[info->selection]->has_serial) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (client) {
|
|
|
+ return cbinfo[info->selection]->serial >= info->serial;
|
|
|
+ } else {
|
|
|
+ return cbinfo[info->selection]->serial > info->serial;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void qemu_clipboard_update(QemuClipboardInfo *info)
|
|
|
{
|
|
|
QemuClipboardNotify notify = {
|