From 83777909b2220abf93e670a7c69f103a1f47682c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 10 Dec 2015 13:28:44 -0500 Subject: [PATCH] do not drop subsurface buffer early after commit from cache this should work the same way as a normal surface --- src/bin/e_comp_wl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index cbedeca2d..97e646b53 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1745,8 +1745,8 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec) DBG("Subsurface Commit from Cache"); _e_comp_wl_surface_state_commit(ec, &sdata->cached); - - e_comp_wl_buffer_reference(&sdata->cached_buffer_ref, NULL); + if (!e_comp_object_damage_exists(ec->frame)) + e_pixmap_image_clear(ec->pixmap, 1); } static void