Commit cccaf1d1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Carlos Garnacho
Browse files

Use actual drop status

We have this information in the XDND protocol, so we don't have
to blindly assume that the drop succeeded.
parent 40b28ac6
......@@ -3080,11 +3080,13 @@ static gboolean
gdk_dnd_handle_drop_finished (GdkDragContext *context,
const GdkEventDND *event)
{
GdkX11DragContext *x11_context = GDK_X11_DRAG_CONTEXT (context);
if (context != event->context)
return FALSE;
g_signal_emit_by_name (context, "dnd-finished");
gdk_drag_drop_done (context, TRUE);
gdk_drag_drop_done (context, !x11_context->drop_failed);
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment