On Tue, Nov 30, 2010 at 1:22 PM, Joel Teichroeb <[email protected]> wrote: > The window no longer assumes that the client wants to have text/plain > and text/html draged onto it. The client will have to tell wayland about > the things it wants dragged manually.
I ended up doing this a little differently. We need to call wl_drag_offer() before activating the drag, so I split the window helper function into create and activate functions. Kristia > --- > clients/window.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/clients/window.c b/clients/window.c > index f720bf8..f91977e 100644 > --- a/clients/window.c > +++ b/clients/window.c > @@ -996,8 +996,6 @@ window_start_drag(struct window *window, struct input > *input, uint32_t time, > cairo_device_flush (window->display->device); > > drag = wl_shell_create_drag(window->display->shell); > - wl_drag_offer(drag, "text/plain"); > - wl_drag_offer(drag, "text/html"); > wl_drag_activate(drag, window->surface, input->input_device, time); > wl_drag_add_listener(drag, listener, data); > > -- > 1.7.3.2 > > _______________________________________________ > wayland-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/wayland-devel > _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
