summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2015-05-11 09:27:13 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-11 09:27:13 -0400
commit842969c2314557a3ef86cd61780b6822f779d317 (patch)
tree5af6a7554aa14b665474b547fdfbf33bc8c7e394 /src/lib/ecore_wayland
parentd1b414a6eca180702caf9c980b163023deada0d7 (diff)
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
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl.c3
1 files changed, 3 insertions, 0 deletions
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)
374 LOGFN(__FILE__, __LINE__, __FUNCTION__); 374 LOGFN(__FILE__, __LINE__, __FUNCTION__);
375 375
376 if (!_ecore_wl_disp) return 0; 376 if (!_ecore_wl_disp) return 0;
377
378 _ecore_wl_init_wait();
379
377 if (!_ecore_wl_disp->output) return 75; 380 if (!_ecore_wl_disp->output) return 75;
378 381
379 mw = _ecore_wl_disp->output->mw; 382 mw = _ecore_wl_disp->output->mw;