wayland: Switch to ecore_wl2_window_commit()

Use ecore_wl2_window_commit() instead of directly calling wl_surface_commit
This commit is contained in:
Derek Foreman 2017-08-14 18:48:58 -05:00
parent 972633e7e8
commit a8c44938f3
3 changed files with 4 additions and 4 deletions

View File

@ -475,7 +475,7 @@ _ecore_evas_wl_common_cb_window_configure(void *data EINA_UNUSED, int type EINA_
wdata->win->zxdg_configure_ack(wdata->win->zxdg_surface,
wdata->win->configure_serial);
wdata->win->configure_serial = 0;
wl_surface_commit(wdata->win->surface);
ecore_wl2_window_commit(wdata->win, EINA_TRUE);
}
return ECORE_CALLBACK_RENEW;
}

View File

@ -504,7 +504,7 @@ _create_succeeded(void *data,
wl_surface_attach(wls, b->wl_buffer, 0, 0);
_evas_surface_damage(wls, b->surface->compositor_version,
b->w, b->h, NULL, 0);
wl_surface_commit(wls);
ecore_wl2_window_commit(b->surface->surface->info->info.wl2_win, EINA_TRUE);
b->surface->pre = NULL;
b->busy = EINA_FALSE;
}
@ -706,7 +706,7 @@ _evas_dmabuf_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count,
else
wl_surface_attach(wls, NULL, 0, 0);
wl_surface_commit(wls);
ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE);
}
static Dmabuf_Buffer *

View File

@ -558,7 +558,7 @@ _evas_shm_surface_post(Surface *s, Eina_Rectangle *rects, unsigned int count, Ei
else
wl_surface_attach(wls, NULL, 0, 0);
wl_surface_commit(wls);
ecore_wl2_window_commit(s->info->info.wl2_win, EINA_TRUE);
leaf->busy = EINA_TRUE;
leaf->drawn = EINA_TRUE;