vdagentd-x11: Work around a bug in xsel
commitcfdec6b104f7db7a2cac2327925975cb187ee794
authorHans de Goede <hdegoede@redhat.com>
Mon, 1 Nov 2010 11:04:11 +0000 (1 12:04 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 1 Nov 2010 11:04:11 +0000 (1 12:04 +0100)
treedeea60d37c0848b55dcc3245b15753e98f67539e
parent899dc0656c7569b0c884025c714be165903016c4
vdagentd-x11: Work around a bug in xsel

Although ICCCM 2.2. Responsibilities of the Selection Owner:
http://tronche.com/gui/x/icccm/sec-2.html#s-2.2

Clearly states (about selection notify events):
The owner should set the specified selection, target, time, and property
arguments to the values received in the SelectionRequest event.

xsel sets the selection notify event target member to the incr atom when
it is going to send the clipboard data incremental, rather then setting
it to the UTF8_STRING atom (which was the target of the SelectionRequest).

Work around this (esp as it is likely other programs may get this wrong
too) and accept the incr atom as a valid target in a selection notify event.
vdagent-x11.c