blob: 33dea7ec2fb5593ceb3b8987712bfe5f00d93016 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
Clipboard sharing with `qemu_vdagent` does not work with SDL backend
Description of problem:
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.
Steps to 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 information:
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
```
|