forked from enlightenment/efl
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:
parent
e38c985cd0
commit
133e3e38f0
|
@ -220,6 +220,9 @@ ecore_wl_screen_size_get(int *w, int *h)
|
||||||
if (w) *w = 0;
|
if (w) *w = 0;
|
||||||
if (h) *h = 0;
|
if (h) *h = 0;
|
||||||
|
|
||||||
|
if (!_ecore_wl_disp->output)
|
||||||
|
ecore_wl_sync();
|
||||||
|
|
||||||
if (!_ecore_wl_disp->output) return;
|
if (!_ecore_wl_disp->output) return;
|
||||||
|
|
||||||
switch (_ecore_wl_disp->output->transform)
|
switch (_ecore_wl_disp->output->transform)
|
||||||
|
|
Loading…
Reference in New Issue