From 133e3e38f0c2b14421b4a1e29825f00ec99027ef Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Fri, 5 Apr 2013 17:26:00 -0300 Subject: [PATCH] ecore/wayland: Sync before assuming that there's no output. This will make the mainloop block waiting for the output info, if it's not there yet, but it's better than just returning with no screen size. --- 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 97dfb6b..dd6829d 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -220,6 +220,9 @@ ecore_wl_screen_size_get(int *w, int *h) if (w) *w = 0; if (h) *h = 0; + if (!_ecore_wl_disp->output) + ecore_wl_sync(); + if (!_ecore_wl_disp->output) return; switch (_ecore_wl_disp->output->transform) -- 2.7.4