[Wayland-bugs] [Bug 748763] New: warnings when starting drag from GtkEntries

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri May 1 10:38:36 PDT 2015


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

            Bug ID: 748763
           Summary: warnings when starting drag from GtkEntries
    Classification: Platform
           Product: gtk+
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Backend: Wayland
          Assignee: gtk-bugs at gtk.org
          Reporter: carlosg at gnome.org
        QA Contact: gtk-bugs at gtk.org
                CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
     GNOME version: ---

On wayland, dragging text from any GtkEntry causes warnings around GdkWindow
calls, and the drag icon remains invisible

>From what I investigated this comes from gtkdnd machinery which first sets a
default "text" icon, which is then replaced by the surface containing the text
itself. This causes the old DnD icon widget to be destroyed, along with its
resources.

But on wayland we hardcode the icon widget icon to be
gdk_wayland_drag_context_get_dnd_window() (which basically holds the wl_surface
we give on start_drag), this window should survive throughout all of DnD,
although it's currently being destroyed with the first DnD icon.

I'm attaching a couple of patches/hacks that ensure the wl_surface live as long
as DnD does, I guess it would be cleaner to make gtkdnd.c have an internal
GtkWindow that's never destroyed, but something like the second patch would be
needed anyway, because such window would be hidden anyway.

-- 
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/20150501/e534a352/attachment.html>


More information about the wayland-bugs mailing list