From 98409a8d1cfe62aaaf75036276b9341403e4a7d5 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Mon, 8 Apr 2013 15:28:56 -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 a5fbd27..24cb527 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -314,6 +314,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