From 1249c7732515445f5569c9350d2e330b5e20ec9d Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Mon, 29 Oct 2012 20:23:29 -0600 Subject: [PATCH weston] toytoolkit: Don't destroy window cairo surface on shm attach. --- 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