[Wayland-bugs] [Bug 91950] Consider whether wl_data_offer::accept should really require a MIME type

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 9 14:10:25 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=91950

            Bug ID: 91950
           Summary: Consider whether wl_data_offer::accept should really
                    require a MIME type
           Product: Wayland
           Version: 1.5.0
          Hardware: Other
                OS: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: wayland
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: mcatanzaro at gnome.org

I have a Wayland client that would like to send wl_data_offer::accept requests
when acting as the drag destination, to indicate if drag data would be accepted
for the current location of the pointer. However, my client is unable to
guarantee which MIME type it will eventually choose to receive data for. It
therefore picks the first MIME type it could ever possibly use, and passes that
MIME type to wl_data_offer::accept, even if it will eventually decide not to
use that MIME type. This enhances the user experience during a DnD session by
encouraging the drag source to display a cursor image that indicates the drag
will be accepted, but some clients might choose a non-ideal drag image based on
the potentially-misleading MIME type my client has accepted.

It would be nice if there was a way to indicate that some MIME type would be
accepted for the current pointer location, without committing to any particular
MIME type. Passing NULL for the mime_type parameter would be ideal for this,
except that is a reject message.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150909/0c0b9a97/attachment.html>


More information about the wayland-bugs mailing list