Ecore_Wayland: Be sure to call wl_surface_commit after we damage a

surface.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78051
This commit is contained in:
Christopher Michael 2012-10-16 11:57:10 +00:00 committed by Christopher Michael
parent cc85b42a0d
commit e1c5667826
1 changed files with 5 additions and 1 deletions

View File

@ -251,7 +251,10 @@ ecore_wl_window_damage(Ecore_Wl_Window *win, int x, int y, int w, int h)
if (!win) return;
if (win->surface)
wl_surface_damage(win->surface, x, y, w, h);
{
wl_surface_damage(win->surface, x, y, w, h);
wl_surface_commit(win->surface);
}
}
EAPI void
@ -286,6 +289,7 @@ ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, in
wl_surface_attach(win->surface, buffer, x, y);
wl_surface_damage(win->surface, 0, 0,
win->allocation.w, win->allocation.h);
wl_surface_commit(win->surface);
win->server_allocation = win->allocation;
}