if (!ecore_x_selection_convert(xevent->xselectionrequest.selection,
xevent->xselectionrequest.target,
- &data) == -1)
+ &data))
{
/* Refuse selection, conversion to requested target failed */
property = None;
}
}
- /* Default, just return the data */
+ /* ICCCM says "If the selection cannot be converted into a form based on the target (and parameters, if any), the owner should refuse the SelectionRequest as previously described." */
+ return 0;
+
+ /* Default, just return the data
*data_ret = malloc(sel->length);
memcpy(*data_ret, sel->data, sel->length);
free(tgt_str);
return 1;
+ */
}
/* TODO: We need to work out a mechanism for automatic conversion to any requested
(sd->win == ev->owner))
{
if (!ecore_x_selection_convert(ev->selection, ev->target,
- &data) == -1)
+ &data))
{
/* Refuse selection, conversion to requested target failed */
sn_event.property = XCB_NONE;