diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-03-29 11:46:41 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-03-29 11:46:41 +0200 |
commit | 3b0824ca83dc68b251a95ab120e5d97345f15f12 (patch) | |
tree | c5697a9df227d06db2d0280cb0b507b26c9c2e14 | |
parent | ebcb95479d65f176b3bce122f99f80e27bf71a34 (diff) |
vdagent-x11: Release clipboard on exit
-rw-r--r-- | vdagent-x11.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vdagent-x11.c b/vdagent-x11.c index f2c99f4..ebc2ad4 100644 --- a/vdagent-x11.c +++ b/vdagent-x11.c @@ -105,6 +105,8 @@ static void vdagent_x11_handle_targets_notify(struct vdagent_x11 *x11, static void vdagent_x11_send_selection_notify(struct vdagent_x11 *x11, Atom prop, int process_next_req); +static void vdagent_x11_set_clipboard_owner(struct vdagent_x11 *x11, + int new_owner); struct vdagent_x11 *vdagent_x11_create(struct udscs_connection *vdagentd, FILE *errfile, int verbose) @@ -191,6 +193,7 @@ void vdagent_x11_destroy(struct vdagent_x11 *x11) if (!x11) return; + vdagent_x11_set_clipboard_owner(x11, owner_none); XCloseDisplay(x11->display); free(x11); } |