ecore_wl2: Fix small bug in flush handler
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 30 Aug 2017 17:16:34 +0000 (12:16 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Wed, 30 Aug 2017 19:11:47 +0000 (14:11 -0500)
commite0d94b8234f32440f71a66249337ee541cf97c52
tree4e2eb55259a60b117135d21b16332a1ca884da1e
parent4e41f7569bfb1ca2fa5591e96ea31df5af6fa6ad
ecore_wl2: Fix small bug in flush handler

If wl_display_flush() returns a non negative number it was successful,
so we should disable the write handler then.  We were theoretically always
doing an extra flush on an empty buffer.

This is mostly cosmetic as that's not a costly operation.
src/lib/ecore_wl2/ecore_wl2_display.c