Do not call actual wl_surface_commit unless we have a buffer attached.

NB: Fixes zmike multi-client problem

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-09-24 11:33:13 +01:00
parent deedad61b9
commit eeb6f1e59f
1 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,8 @@ ecore_wl_window_commit(Ecore_Wl_Window *win)
LOGFN(__FILE__, __LINE__, __FUNCTION__);
if (!win) return;
if (win->surface) wl_surface_commit(win->surface);
if ((win->surface) && (win->has_buffer))
wl_surface_commit(win->surface);
}
EAPI void
@ -227,6 +228,7 @@ ecore_wl_window_buffer_attach(Ecore_Wl_Window *win, struct wl_buffer *buffer, in
y = 0;
win->edges = 0;
win->has_buffer = (buffer != NULL);
/* if (buffer) */
wl_surface_attach(win->surface, buffer, x, y);