summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-08-08 12:01:48 +0200
committerHans de Goede <hdegoede@redhat.com>2013-08-08 13:02:14 +0200
commitbad87034bbed85e65e9b8fe479c967a3d0f9c861 (patch)
tree4575894415ccc7fb970dee644976ae100c7fc938 /src
parent99a2628b0ff04e0aadd130e45aa2598c4df64690 (diff)
vdagent_x11_target_to_type: Improve error logging
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/vdagent-x11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vdagent-x11.c b/src/vdagent-x11.c
index 6a58532..aae8566 100644
--- a/src/vdagent-x11.c
+++ b/src/vdagent-x11.c
@@ -832,6 +832,8 @@ static void vdagent_x11_handle_selection_notify(struct vdagent_x11 *x11,
selection = x11->conversion_req->selection;
type = vdagent_x11_target_to_type(x11, selection,
x11->conversion_req->target);
+ if (type == VD_AGENT_CLIPBOARD_NONE)
+ syslog(LOG_ERR, "internal error conversion_req has bad target");
if (len == 0) { /* No errors so far */
len = vdagent_x11_get_selection(x11, event, selection,
x11->conversion_req->target,
@@ -1041,6 +1043,7 @@ static void vdagent_x11_handle_selection_request(struct vdagent_x11 *x11)
type = vdagent_x11_target_to_type(x11, selection,
event->xselectionrequest.target);
if (type == VD_AGENT_CLIPBOARD_NONE) {
+ syslog(LOG_ERR, "guest app requested a non-advertised target");
vdagent_x11_send_selection_notify(x11, None, NULL);
return;
}