DnD/X11: improve callbacks invocations.
authorDaniel Zaoui <daniel.zaoui@yahoo.com>
Wed, 25 Feb 2015 08:36:38 +0000 (10:36 +0200)
committerDaniel Zaoui <daniel.zaoui@yahoo.com>
Wed, 25 Feb 2015 08:36:38 +0000 (10:36 +0200)
commit5ed6e233db67f89b5c2f954ab15b2e0282545ee3
tree86fc72c9fde66344005f025e3bdc05736f3ac8e4
parenta0678c0bdd6296274538d25c817510ed94378aba
DnD/X11: improve callbacks invocations.

There is no reason why drop targets callbacks registered for a specific
type would be invoked when a not supported data is dragged.
This patch fixes it by comparing the data type and the callback type of
the drop target. Only the callbacks supporting the data type are
invoked.
src/lib/elm_cnp.c