loop: Try harder to find the main loop
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 18 Dec 2017 02:58:43 +0000 (11:58 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
commit7832f2625ec67d7fcd32f8df22648ba343d574da
tree56e4691132f81acc5983b4fcffd879d9ad502811
parente6f017f752e0cf1ac3030bc8c590606c454d791c
loop: Try harder to find the main loop

If the object has no parent or anything else goes a bit wrong,
efl_loop_get() may fail to return the loop object. It's a bit ridiculous
when we're in the main loop as we know which loop object was requested.

This avoids returning NULL.
src/lib/ecore/efl_loop_consumer.c