From e1c5667826d4ea61e4daa4ec6b37d1bba902ff00 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 16 Oct 2012 11:57:10 +0000 Subject: [PATCH] Ecore_Wayland: Be sure to call wl_surface_commit after we damage a surface. Signed-off-by: Christopher Michael SVN revision: 78051 --- legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c index 76524acd07..80b443b4ca 100644 --- a/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c +++ b/legacy/ecore/src/lib/ecore_wayland/ecore_wl_window.c @@ -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; }