Ecore_Evas (wayland): Be sure to call 'iterate' if this is the first

initialize of ecore_wl (needed for running clients under the Weston
Compositor). Remove extra flush call when rendering.



SVN revision: 69708
This commit is contained in:
Christopher Michael 2012-03-29 01:28:28 +00:00
parent 62694fbf44
commit 651d301b69
2 changed files with 8 additions and 14 deletions

View File

@ -178,8 +178,8 @@ ecore_evas_wayland_egl_new(const char *disp_name, unsigned int parent, int x, in
ERR("Failed to initialize Ecore_Wayland");
return NULL;
}
else if (count >= 1)
ecore_wl_sync();
else if (count == 1)
ecore_wl_display_iterate();
if (!(ee = calloc(1, sizeof(Ecore_Evas))))
{
@ -763,7 +763,7 @@ _ecore_evas_wl_render(Ecore_Evas *ee)
ecore_wl_window_damage(ee->engine.wl.win,
r->x, r->y, r->w, r->h);
ecore_wl_flush();
/* ecore_wl_flush(); */
evas_render_updates_free(updates);
_ecore_evas_idle_timeout_update(ee);

View File

@ -179,8 +179,8 @@ ecore_evas_wayland_shm_new(const char *disp_name, unsigned int parent, int x, in
ERR("Failed to initialize Ecore_Wayland");
return NULL;
}
else if (count >= 1)
ecore_wl_sync();
else if (count == 1)
ecore_wl_display_iterate();
if (!(ee = calloc(1, sizeof(Ecore_Evas))))
{
@ -810,16 +810,10 @@ _ecore_evas_wl_render(Ecore_Evas *ee)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
EINA_LIST_FOREACH(updates, l, r)
{
/* if (ee->engine.wl.buffer) */
/* wl_buffer_damage(ee->engine.wl.buffer, */
/* r->x, r->y, r->w, r->h); */
ecore_wl_window_damage(ee->engine.wl.win,
r->x, r->y, r->w, r->h);
ecore_wl_window_damage(ee->engine.wl.win,
r->x, r->y, r->w, r->h);
}
ecore_wl_flush();
/* ecore_wl_flush(); */
evas_render_updates_free(updates);
_ecore_evas_idle_timeout_update(ee);