antognolli pushed a commit to branch master.

commit 133e3e38f0c2b14421b4a1e29825f00ec99027ef
Author: Rafael Antognolli <[email protected]>
Date:   Fri Apr 5 17:26:00 2013 -0300

    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)

-- 

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html

Reply via email to