From 842969c2314557a3ef86cd61780b6822f779d317 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Mon, 11 May 2015 09:27:13 -0400 Subject: [PATCH] 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 49d7f6c998..a04d2df5c4 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;