[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/24] ui/clipboard: fix serial priority
From: |
Gerd Hoffmann |
Subject: |
[PULL 06/24] ui/clipboard: fix serial priority |
Date: |
Tue, 27 Sep 2022 10:18:54 +0200 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
The incoming grab event should have a higher serial.
See also "vdagent: introduce VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL":
https://gitlab.freedesktop.org/spice/spice-protocol/-/commit/045a6978d6dbbf7046affc5c321fa8177c8cce56
This is only a relevant fix for the -display dbus, only user of that
function.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220912102455.111765-3-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/clipboard.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/clipboard.c b/ui/clipboard.c
index cd5382fcb0c1..3e2d02d5490c 100644
--- a/ui/clipboard.c
+++ b/ui/clipboard.c
@@ -54,9 +54,9 @@ bool qemu_clipboard_check_serial(QemuClipboardInfo *info,
bool client)
}
if (client) {
- ok = cbinfo[info->selection]->serial >= info->serial;
+ ok = info->serial >= cbinfo[info->selection]->serial;
} else {
- ok = cbinfo[info->selection]->serial > info->serial;
+ ok = info->serial > cbinfo[info->selection]->serial;
}
trace_clipboard_check_serial(cbinfo[info->selection]->serial,
info->serial, ok);
--
2.37.3
- [PULL 00/24] Kraxel 20220927 patches, Gerd Hoffmann, 2022/09/27
- [PULL 01/24] ui/console: Get tab completion working again in the SDL monitor vc, Gerd Hoffmann, 2022/09/27
- [PULL 08/24] ui/clipboard: reset the serial state on reset, Gerd Hoffmann, 2022/09/27
- [PULL 07/24] ui/vdagent: always reset the clipboard serial on caps, Gerd Hoffmann, 2022/09/27
- [PULL 05/24] ui: add some vdagent related traces, Gerd Hoffmann, 2022/09/27
- [PULL 10/24] ui/console: fix three double frees in png_save(), Gerd Hoffmann, 2022/09/27
- [PULL 09/24] ui/vdagent: fix serial reset of guest agent, Gerd Hoffmann, 2022/09/27
- [PULL 03/24] Revert "main-loop: Disable block backend global state assertion on Cocoa", Gerd Hoffmann, 2022/09/27
- [PULL 02/24] ui/cocoa: Run qemu_init in the main thread, Gerd Hoffmann, 2022/09/27
- [PULL 06/24] ui/clipboard: fix serial priority,
Gerd Hoffmann <=
- [PULL 11/24] hw/usb/hcd-xhci: Check whether DMA accesses fail, Gerd Hoffmann, 2022/09/27
- [PULL 04/24] meson: Allow to enable gtk and sdl while cocoa is enabled, Gerd Hoffmann, 2022/09/27
- [PULL 16/24] usbnet: Add missing usb_wakeup() call in usbnet_receive(), Gerd Hoffmann, 2022/09/27
- [PULL 14/24] usb/msd: add usb_msd_fatal_error() and fix guest-triggerable assert, Gerd Hoffmann, 2022/09/27
- [PULL 15/24] hcd-xhci: drop operation with secondary stream arrays enabled, Gerd Hoffmann, 2022/09/27
- [PULL 12/24] hcd-ohci: Drop ohci_service_iso_td() if ed->head & OHCI_DPTR_MASK is zero, Gerd Hoffmann, 2022/09/27
- [PULL 13/24] usb/msd: move usb_msd_packet_complete(), Gerd Hoffmann, 2022/09/27
- [PULL 19/24] usbnet: Report link-up via interrupt endpoint in CDC-ECM mode, Gerd Hoffmann, 2022/09/27
- [PULL 18/24] usbnet: Detect short packets as sent by the xHCI controller, Gerd Hoffmann, 2022/09/27
- [PULL 17/24] usbnet: Accept mandatory USB_CDC_SET_ETHERNET_PACKET_FILTER request, Gerd Hoffmann, 2022/09/27