[Wayland-bugs] [Bug 697855] Implement DnD in wayland

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Sat Aug 30 03:55:10 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=697855
  gtk+ | Backend: Wayland | 3.8.x

--- Comment #53 from Carlos Garnacho <carlosg at gnome.org> 2014-08-30 10:55:09 UTC ---
(In reply to comment #50)
> I've now played a bit with the branch under weston (my mutter doesn't get any
> input, so not very useful for testing dnd...).

Thanks for testing :)

> 
> I've used the clipboard example in gtk3-demo.
> 
> Results:
> 
> 1) copy/paste works for both text and images
> 
> 2) the snapback animation after a rejected drop doesn't show

Yeah... Such feedback would be basically a responsibility of the compositor.
Weston doesn't do much here as you can see, and mutter/g-s doesn't even display
DnD icons yet... I would want to get to the latter and add the snapback
animation there.

> 
> 3) the image drag doesn't get the dnd window. You probably run into the case
> where we try to do it all with a cursor. We must not do that under wayland, I
> guess

Hmm, I'll investigate that... but yeah, there's basically a bunch of code in
gtkdnd.c we eventually want to not run on wayland, all the code to update the
DnD window position while the button is pressed is also useless there, although
harmless. There some useful bits there that could need rethinking, like pointer
cursor changes.

> 
> 4) the cursor does not update to indicate whether a drop is possible

Right... see above.

> 
> 5) the right click menu on the images in this example is mispositioned

Hmm, indeed, I also see some gdk warnings when trying to fetch the pointer
position, not sure how related to these patches though. I'll have a look
anyway.

(In reply to comment #51)
> Also tested copy/paste between weston-terminal and gtk-demo. Mostly works, but
> I notice that copying text in weston-terminal does not make the paste menuitem
> in the gtk-demo source views context menu sensitive
(In reply to comment #52)
> the paste menuitem does not go sensitive for a local copy to the clipboard
> either

Hmm, that's weird, I do get menu sensitivity updating properly, although I've
just observed that only the first paste works, as opposed to Ctrl-V.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Wayland-bugs mailing list