forked from enlightenment/efl
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:
parent
d1b414a6ec
commit
842969c231
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue