diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-09-30 14:59:32 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-09-30 17:47:06 +0200 |
commit | 10ac0a50162041b4733c7432a3e16e63a6c3be68 (patch) | |
tree | 12e887a84de213fac79eee959742b6c804c5e489 /vdagent.c | |
parent | 8ad464cdf66a3fd55a7c8a9f01a07f84f93a547b (diff) |
finish client -> guest copy paste
Also put selection requests in a queue so that we are sure to answer
them in the same order as received.
Diffstat (limited to 'vdagent.c')
-rw-r--r-- | vdagent.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -42,12 +42,15 @@ int daemon_read_complete(struct udscs_connection *conn, case VDAGENTD_MONITORS_CONFIG: vdagent_x11_set_monitor_config(x11, (VDAgentMonitorsConfig *)data); break; + case VDAGENTD_CLIPBOARD_REQUEST: + vdagent_x11_clipboard_request(x11, header->opaque); + break; case VDAGENTD_CLIPBOARD_GRAB: vdagent_x11_clipboard_grab(x11, (uint32_t *)data, header->size / sizeof(uint32_t)); break; - case VDAGENTD_CLIPBOARD_REQUEST: - vdagent_x11_clipboard_request(x11, header->opaque); + case VDAGENTD_CLIPBOARD_DATA: + vdagent_x11_clipboard_data(x11, header->opaque, data, header->size); break; default: if (verbose) |