[Wayland-bugs] [Bug 763298] wayland: connection flooded when dragging

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 10 13:42:04 UTC 2016


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

--- Comment #8 from Carlos Garnacho <carlosg at gnome.org> ---
(In reply to Matthias Clasen from comment #7)
> Here is another concern I came upwith this morning:
> 
> The gdk dnd api lets you pretty freely call gdk_drag_status from whereever.

Hmmm, wherever in response to DnD events, or crazier things like timeouts, etc?
I thought the docs seemed clear enough (even if outdated/non-generic):

"This function is called by the drag destination in response to
gdk_drag_motion() called by the drag source."

It's right I'm missing GDK_DRAG_ENTER in the switch though.

> With this change, I'm afraid that this might not work anymore for Wayland,
> since gdk_drag_status will not have any effect unless it is in response to a
> drag motion event.
> 
> Now, I don't know if such 'freestanding gdk_drag_status calls ever worked
> with Wayland in the first place...

According to the wayland DnD protocol, the wl_data_offer.set_actions request
(which gdk_drag_status/commit_drag_status boil down to) are allowed "during
dnd" (typically in response to wl_data_device.enter/motion) and once after
wl_data_device.drop, only if an "ask" action was agreed previously. I guess we
should also enforce the latter more pervasively.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160310/1e25ac02/attachment.html>


More information about the wayland-bugs mailing list