r895: Fix clipboard handling to return only data of the requested type.
commitd36ef99fcb301c6c761a3bbd697a07c248cca1d4
authorJohannes Sixt <johannes.sixt@telecom.at>
Fri, 22 Sep 2006 20:21:46 +0000 (22 20:21 +0000)
committerJohannes Sixt <johannes.sixt@telecom.at>
Fri, 22 Sep 2006 20:21:46 +0000 (22 20:21 +0000)
tree8b3792040ed14ea4f2ac25f3a1e2f18914a79c01
parent6e82a3696eadd96ec4dd5fe7bd054a5e482c11a1
r895: Fix clipboard handling to return only data of the requested type.

The modifications look more voluminous than they are because one change
is to move the handler for SelectionRequest events into a set of
functions.

The major fix is to check the type of data that is requested in the
SelectionRequest event. This way a bad interaction with Klipper is
avoided, which requests data of type 'TARGETS' when it notices that the
selection owner has changed.

In addition, the request for 'TARGETS' is also honored. This makes
Cinelerra a little more compliant with the ICCCM. However, the mandatory
targets 'TIMESTAMP' and 'MULTIPLE' are still not supported.
guicast/bcclipboard.C
guicast/bcclipboard.h