Commit 3a3f2e50 authored by Carlos Garnacho's avatar Carlos Garnacho

wayland: Don't unset the selected mimetype on drop_reply

gdk_wayland_drop_context_set_status() can't do much else currently besides
picking a mimetype (the first one is currently chosen). This may incorrectly
unset the mimetype chosen on .receive(), so the transfer is cancelled before
it even starts.

At the time drop_reply happens, we should have already picked a mimetype
along the way, so only cover for accepted=FALSE in order to unset it.
parent 42f096c8
......@@ -236,7 +236,8 @@ gdk_wayland_drag_context_drop_reply (GdkDragContext *context,
gboolean accepted,
guint32 time_)
{
gdk_wayland_drop_context_set_status (context, accepted);
if (!accepted)
gdk_wayland_drop_context_set_status (context, accepted);
}
static void
......
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