toytoolkit: Don't destroy window cairo surface on shm attach.
authorScott Moreau <oreaus@gmail.com>
Tue, 30 Oct 2012 18:12:12 +0000 (12:12 -0600)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 30 Oct 2012 18:18:49 +0000 (14:18 -0400)
https://bugs.freedesktop.org/show_bug.cgi?id=52454

clients/window.c

index e699fbc..ece9229 100644 (file)
@@ -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;