[PATCH weston] toytoolkit: Don't destroy window cairo surface on shm attach.

Scott Moreau oreaus at gmail.com
Tue Oct 30 11:12:12 PDT 2012


---
 clients/window.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index 7b5e351..49b8a25 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -869,8 +869,6 @@ window_attach_surface(struct window *window)
 				  window->allocation.height);
 		wl_surface_commit(window->surface);
 		window->server_allocation = window->allocation;
-		cairo_surface_destroy(window->cairo_surface);
-		window->cairo_surface = NULL;
 		break;
 	default:
 		return;
-- 
1.7.11.7



More information about the wayland-devel mailing list