Fallback to attempt 16 bit format accepts on selection notifies when the
authorningerso <ningerso>
Thu, 28 Sep 2006 18:56:03 +0000 (18:56 +0000)
committerningerso <ningerso@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Sep 2006 18:56:03 +0000 (18:56 +0000)
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

index 6c9d1b3..9260f7f 100644 (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));