antognolli pushed a commit to branch ecore-1.7.

commit 652908d360dc6f888fe48cddb4d60b160ffaec7d
Author: Rafael Antognolli <[email protected]>
Date:   Mon Apr 8 15:28:56 2013 -0300

    backport: 133e3e38f0c2b14421b4a1e29825f00ec99027ef
    
    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 60931a6..fb4e6be 100644
--- a/src/lib/ecore_wayland/ecore_wl.c
+++ b/src/lib/ecore_wayland/ecore_wl.c
@@ -327,6 +327,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)

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to