[Wayland-bugs] [Bug 751414] File descriptor leak in gdk_wayland_selection_request_target()

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 24 14:48:41 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=751414

--- Comment #22 from Carlos Garnacho <carlosg at gnome.org> ---
(In reply to Michael Catanzaro from comment #21)
> I confirm this bug is fixed when I apply these five patches. Great, thanks!

Thanks for verifying! Will push now.

> 
> (In reply to Carlos Garnacho from comment #16) 
> > Yeah, that'd be one way to work around the "1 request on the fly"
> > limitation, is it too much of a change to?:
> > 
> > * forward all mimetypes to the other process over internal IPC
> > * In the other process, pick one and tell about it to the original process
> > * call wl_data_offer_receive on that one, pass the fd.
> > * In the other process, read() and close
> 
> If that would work it would have been the first thing to try, but Chrome
> expects the data to already be present before it deciding which type of data
> to pick, unfortunately.

I feared as much... Then there's no way around one-by-one requests and/or
selection data caching ATM.

> 
> To be clear, the problems I see are:
> 
> * If GTK+ were to allow handling multiple data transfers at once in the
> future, there would need to be policy either in GTK+ or in the compositor to
> ensure that the drop target cannot initiate an arbitrary number of
> simultaneous transfers.

Agreed.

> 
> * If GTK+ continues to not handle multiple data transfers at once, it's
> arguably not implementing its end of the protocol properly. Since it works
> with the reference Weston client, I would expect it to work with GTK+ as
> well. But if there was upstream documentation to say "don't expect this to
> work" (the simplest solution, possibly the best solution) then there would
> be no problem.

Oh, if it were the only unclear point in the DnD protocol. I found a few in the
doing of the proposal for wayland DnD actions :/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150624/36153d6f/attachment-0001.html>


More information about the wayland-bugs mailing list