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
This commit is contained in:
Boram Park 2015-05-11 09:27:13 -04:00 committed by Chris Michael
parent d1b414a6ec
commit 842969c231
1 changed files with 3 additions and 0 deletions

View File

@ -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;