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.
This commit is contained in:
Rafael Antognolli 2013-04-05 17:26:00 -03:00
parent e38c985cd0
commit 133e3e38f0
1 changed files with 3 additions and 0 deletions

View File

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