DnD/X11: improve types checking during position event.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Wed, 25 Feb 2015 08:36:34 +0000 (10:36 +0200)
committerDaniel Zaoui <daniel.zaoui@yahoo.com>
Wed, 25 Feb 2015 08:36:34 +0000 (10:36 +0200)
commita0678c0bdd6296274538d25c817510ed94378aba
treea3f3616c2a894fe8e2e9f8de70d5d423ad5ff88d
parent956a7c52a3d5627b9d25b41357aae5b8cc0829ea
DnD/X11: improve types checking during position event.

During a DnD position event, we need to find the first dropable target
located under the mouse pointer; one of its callbacks has to support
at least one of the types of the dragged data.
This search process was done by strcmp-ing types for every drop target
and for each of their types until a good target is found.
This patch improves the process by comparing types formats, i.e and-ing bits
vectors.
src/lib/elm_cnp.c