id = 471 title = "Clipboard sharing with `qemu_vdagent` does not work with SDL backend" state = "opened" created_at = "2021-07-11T15:00:37.640Z" closed_at = "n/a" labels = ["device:input", "kind::Feature Request", "workflow::Triaged"] url = "https://gitlab.com/qemu-project/qemu/-/issues/471" host-os = "Arch Linux" host-arch = "x86_64" qemu-version = "QEMU emulator version 6.0.50 (v6.0.0-2451-g3cfcc329af)" guest-os = "Fedora-Workstation-Live-x86_64-34-1.2.iso" guest-arch = "x86_64" description = """Clipboard sharing doesn't work: qemu does not send clipboard-grab messages when selecting on the host, nor does it respond to clipboard-grab messages from the guest.""" reproduce = """1. Start QEMU with `qemu_vdagent` and `-display sdl` 2. Try to copy on the host or the guest 3. Observe that the clipboard is not shared""" additional = """It appears as though `vdagent_clipboard_notify` function is not called. Logs: With SDL: ``` vdagent_open vdagent_recv_chunk size 28 vdagent_recv_msg msg announce-capabilities, size 8 vdagent_peer_cap cap mouse-state vdagent_peer_cap cap monitors-config vdagent_peer_cap cap reply vdagent_peer_cap cap clipboard-by-demand vdagent_peer_cap cap clipboard-selection vdagent_peer_cap cap sparse-monitors-config vdagent_peer_cap cap guest-lineend-lf vdagent_peer_cap cap max-clipboard vdagent_peer_cap cap audio-volume-sync vdagent_send msg announce-capabilities # tried to copy on host -- nothing happens here. # trying to copy on guest: vdagent_recv_chunk size 28 vdagent_recv_msg msg clipboard-grab, size 8 vdagent_cb_grab_selection selection clipboard vdagent_cb_grab_type type text # no response sent ``` With GTK: ``` vdagent_open vdagent_recv_chunk size 28 vdagent_recv_msg msg announce-capabilities, size 8 vdagent_peer_cap cap mouse-state vdagent_peer_cap cap monitors-config vdagent_peer_cap cap reply vdagent_peer_cap cap clipboard-by-demand vdagent_peer_cap cap clipboard-selection vdagent_peer_cap cap sparse-monitors-config vdagent_peer_cap cap guest-lineend-lf vdagent_peer_cap cap max-clipboard vdagent_peer_cap cap audio-volume-sync vdagent_send msg announce-capabilities # trying to copy on host: vdagent_send msg clipboard-grab vdagent_recv_chunk size 28 vdagent_recv_msg msg clipboard-request, size 8 vdagent_send msg clipboard vdagent_recv_chunk size 28 # trying to copy on guest: vdagent_recv_msg msg clipboard-grab, size 8 vdagent_cb_grab_selection selection clipboard vdagent_cb_grab_type type text vdagent_send msg clipboard-request vdagent_recv_chunk size 29 vdagent_recv_msg msg clipboard, size 9 ```"""