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

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Mon Mar 14 15:55:48 UTC 2016


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

Carlos Garnacho <carlosg at gnome.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #323875|0                           |1
        is obsolete|                            |

--- Comment #13 from Carlos Garnacho <carlosg at gnome.org> ---
Created attachment 323889
  --> https://bugzilla.gnome.org/attachment.cgi?id=323889&action=edit
gdkdnd: Add private means to commit the drag status

The way gdk_drag_status() may be called multiple times during the
processing of drag and drop events throughout the widget hierarchy
brings some superfluous messaging going in, esp. when it's the last
request the one we want to honor, yet we emit messaging requests on
all.

This is barely appreciable in the X11 backend, but due to the design
of the wayland protocol, quick series of changes like this it have
some self-amplificating consequences which may end up flooding the
connection.

We can delegate this to a late "commit" call, performed within GDK
event management. This way gdk_drag_status() calls may be cached
and only result in windowing messaging once per ::drag-motion or
::drag-data-received event. Emitting the final status will also
avoid spurious action changes on the compositor and the other peer.

-- 
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/20160314/944622da/attachment.html>


More information about the wayland-bugs mailing list