From 5580f461dcf3465ce48dfce335b7c4661d67207b Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Fri, 18 Nov 2022 10:13:49 +0000 Subject: [PATCH 1/2] fix log_debug call --- src/picom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/picom.c b/src/picom.c index fd693fc927..ecd09078e8 100644 --- a/src/picom.c +++ b/src/picom.c @@ -539,8 +539,8 @@ static bool initialize_backend(session_t *ps) { } else { shader->attributes = 0; } - log_debug("Shader %s has attributes %ld", shader->key, - shader->attributes); + log_debug("Shader %s has attributes %" PRIu64, + shader->key, shader->attributes); } } From a9db7ab41eeaa8e1040550d23981a6edb0f71b61 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 21 Nov 2022 15:18:55 +0000 Subject: [PATCH 2/2] win: fix leaking of the mask image destroy_win_finish doesn't call win_release_images to free the images, so we need to add a release_mask call there. Related: #892 Signed-off-by: Yuxuan Shui --- src/win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win.c b/src/win.c index 2525d89718..fb61191638 100644 --- a/src/win.c +++ b/src/win.c @@ -2140,6 +2140,7 @@ static void destroy_win_finish(session_t *ps, struct win *w) { assert(mw->shadow_image != NULL); win_release_shadow(ps->backend_data, mw); } + win_release_mask(ps->backend_data, mw); // Invalidate reg_ignore of windows below this one // TODO(yshui) what if next_w is not mapped??