forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
42f096c846
commit
3a3f2e505a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user