devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=842969c2314557a3ef86cd61780b6822f779d317
commit 842969c2314557a3ef86cd61780b6822f779d317 Author: Boram Park <[email protected]> Date: Mon May 11 09:27:13 2015 -0400 ecore_wl: get dpi after all pending events are handled Summary: ecore_wl_dpi_get will return the correct value after wl_output's events are handled Reviewers: zmike, devilhorns, bryceharrington Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2479 --- src/lib/ecore_wayland/ecore_wl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index 49d7f6c..a04d2df 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -374,6 +374,9 @@ ecore_wl_dpi_get(void) LOGFN(__FILE__, __LINE__, __FUNCTION__); if (!_ecore_wl_disp) return 0; + + _ecore_wl_init_wait(); + if (!_ecore_wl_disp->output) return 75; mw = _ecore_wl_disp->output->mw; --
