Re: [PATCH 3/4] Added a reject method to drag_offer.

2010-11-30 Thread Kristian Høgsberg
On Tue, Nov 30, 2010 at 1:22 PM, Joel Teichroeb wrote: > Currently reject just calles drag_finish and does not bother with any fd > stuff. In the future this should be extended to tell the compositor to > do some kind of animation when a drag is rejected. I ended up redoing this one as well - we

Re: [PATCH 1/4] Made the window save the coordinates when being draged.

2010-11-30 Thread Kristian Høgsberg
On Tue, Nov 30, 2010 at 1:22 PM, Joel Teichroeb wrote: Thanks, committed. Kristian > --- >  clients/window.c |   18 ++ >  1 files changed, 10 insertions(+), 8 deletions(-) > > diff --git a/clients/window.c b/clients/window.c > index 3860d1e..f720bf8 100644 > --- a/clients/window

Re: [PATCH 2/4] Removed default drag types.

2010-11-30 Thread Kristian Høgsberg
On Tue, Nov 30, 2010 at 1:22 PM, Joel Teichroeb 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

[PATCH 4/4] Make the DND client actually work.

2010-11-30 Thread Joel Teichroeb
The DND client now sends a "application/x-wayland-dnd-flower" instead of "text/plain". Made each flower keep its own seed. This may change in the future, but this is a good starting point. Added a simple reference counter for dnd_offer so that it will be freed if the flower is dragged out of the wi

[PATCH 3/4] Added a reject method to drag_offer.

2010-11-30 Thread Joel Teichroeb
Currently reject just calles drag_finish and does not bother with any fd stuff. In the future this should be extended to tell the compositor to do some kind of animation when a drag is rejected. --- compositor/compositor.c | 13 - protocol/wayland.xml|4 2 files changed,

[PATCH 2/4] Removed default drag types.

2010-11-30 Thread Joel Teichroeb
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. --- clients/window.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/clients/window.c b/cli

[PATCH 1/4] Made the window save the coordinates when being draged.

2010-11-30 Thread Joel Teichroeb
--- clients/window.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/clients/window.c b/clients/window.c index 3860d1e..f720bf8 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1018,14 +1018,16 @@ handle_configure(void *data, struct wl_shell *shel

Re: Incompatible pointer type in dnd.c

2010-11-30 Thread Alexander Preisinger
Here is the patch for it. My very first patch ever :). 2010/11/30 Christoph Frieben : > dnd.c: In function ‘drop_io_func’: > dnd.c:362:2: warning: passing argument 4 of ‘g_io_channel_read_chars’ > from incompatible pointer type > /usr/include/glib-2.0/glib/giochannel.h:247:11: note: expected ‘gsiz

Incompatible pointer type in dnd.c

2010-11-30 Thread Christoph Frieben
dnd.c: In function ‘drop_io_func’: dnd.c:362:2: warning: passing argument 4 of ‘g_io_channel_read_chars’ from incompatible pointer type /usr/include/glib-2.0/glib/giochannel.h:247:11: note: expected ‘gsize *’ but argument is of type ‘unsigned int *’ Issued by GCC 4.5.1. ~C