From 1bdb477522ee364ca660064e8ca232fbdece09f6 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Tue, 30 Oct 2012 12:12:12 -0600 Subject: [PATCH] toytoolkit: Don't destroy window cairo surface on shm attach. https://bugs.freedesktop.org/show_bug.cgi?id=52454 --- clients/window.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index e699fbc..ece9229 100644 --- a/clients/window.c +++ b/clients/window.c @@ -870,8 +870,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; -- 2.7.4