From 006784cbcdb242d8d180349602f23ddd5a895703 Mon Sep 17 00:00:00 2001 From: ningerso Date: Thu, 28 Sep 2006 18:56:03 +0000 Subject: [PATCH] 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 --- legacy/ecore/src/lib/ecore_x/ecore_x_events.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c index 6c9d1b351b..9260f7fed4 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c @@ -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));