From 56f93311d303d56ae8330c289772bc8bdc2354f4 Mon Sep 17 00:00:00 2001 From: Gwanglim Lee Date: Fri, 23 Sep 2016 21:46:50 +0900 Subject: [PATCH] Decrementing the ref-count of wl_buffer after effect. The reference count of wl_buffer will get decremented immediately after window effect. It will enable the server to clean and flush the iconified client's wl_buffer. Change-Id: I09dfe4979f2c75a93974700110e470ecc4edf7e7 --- src/e_mod_effect.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/e_mod_effect.c b/src/e_mod_effect.c index c4613ca..f54d6ab 100644 --- a/src/e_mod_effect.c +++ b/src/e_mod_effect.c @@ -195,11 +195,11 @@ _eff_unref(E_Client *ec) EFFINF("eff Unref efc(%p) animating:%d", ec->pixmap, ec, efc, efc->animating); - if ((ec->dead) && (ec->hidden)) - { - if ((efc) && (efc->buffer_ref.buffer)) - e_comp_wl_buffer_reference(&efc->buffer_ref, NULL); - } + /* The reference count of wl_buffer will get decremented + * immediately after window effect. + */ + if ((efc) && (efc->buffer_ref.buffer)) + e_comp_wl_buffer_reference(&efc->buffer_ref, NULL); return ec; } -- 2.7.4