Fallback to attempt 16 bit format accepts on selection notifies when the

8 bit format fails. This fixes receiving application/x-color from gimp but is
probably not an ideal solution.


SVN revision: 26190
This commit is contained in:
ningerso 2006-09-28 18:56:03 +00:00 committed by ningerso
parent 2ef90bf328
commit 006784cbcd
1 changed files with 6 additions and 1 deletions

View File

@ -1175,7 +1175,12 @@ _ecore_x_event_handle_selection_notify(XEvent *xevent)
if (!ecore_x_window_prop_property_get(xevent->xselection.requestor,
xevent->xselection.property,
AnyPropertyType, 8, &data, &num_ret))
return;
{
if (!ecore_x_window_prop_property_get(xevent->xselection.requestor,
xevent->xselection.property,
AnyPropertyType, 16, &data, &num_ret))
return;
}
}
e = calloc(1, sizeof(Ecore_X_Event_Selection_Notify));