Xdnd callback (API Addition): Rationale below.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Sep 2010 09:15:50 +0000 (09:15 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Sep 2010 09:15:50 +0000 (09:15 +0000)
commit42a1fc1d30f3957959257f6d81676db61c500b24
tree15d435157894265a33d35c3e35799a92787ad4b3
parentf91af894e9a973ee6a11fbda495ce314e22fb39e
Xdnd callback (API Addition): Rationale below.

Essentially the problem is this: For drag and drop Ecore currently handles the
position update calls.  But usually the application wants to display some user
feedback - a window to display the drag selection for instance.

Now the way e17 does it is grab the mouse cursor movements and track them
itself.  However ecore is already doing this, it's already walking window
trees, calculating real positions, _and_ sending them in an X client message.
So it seems rather silly to duplicate the code in the user app to get the same
info.

We could possibly have added a new event, but then we need to deal the fact
the position update may arrive _After_ the item has been dropped.  Hilarity
ensures[1].

This callback is meant for purely the selection owner of the drag to use, so
it is a callback set, not an add.

[1] Segfaults probably.  Nothing funnier.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@52181 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore_x/Ecore_X.h
src/lib/ecore_x/xlib/ecore_x_dnd.c