Elm cnp: Fix infinite loop on drop target deletions in some cases.
authorTom Hacohen <tom@stosb.com>
Mon, 20 Oct 2014 16:10:02 +0000 (17:10 +0100)
committerTom Hacohen <tom@stosb.com>
Mon, 20 Oct 2014 16:24:07 +0000 (17:24 +0100)
commit49179a03878256b1f09ea0622d404de73d792b1c
tree8b5b713f8770580e153b75440d4782e509e961c7
parent1adff0ae3cd43bf7ffedf5c923ffad0726e2d994
Elm cnp: Fix infinite loop on drop target deletions in some cases.

In some cases, like having a drop target inside an inwin (looks like it
can be other containers too) can cause an infinite loop (as described in
the report). The reason for that is that while the drop target was added
when there was an X window available, the X window ws now gone, so the
non X path was being called which didn't have the code to remove the
item from the list being iterated. Yes, definition of spaghetti and
false assumptions.
Elm dnd/cnp need a massive overhaul, they are disgusting.

See the ticket for more information on the issue.

Fixes T1702
src/lib/elm_cnp.c