From 70807a5a9ffa7adfd0297e7749c2b20fc33e1bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Thu, 27 Sep 2018 17:11:02 +0200 Subject: [PATCH] fix(renderer): remove debug code, add comment --- src/components/renderer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/renderer.cpp b/src/components/renderer.cpp index e7941050..34a3ed11 100644 --- a/src/components/renderer.cpp +++ b/src/components/renderer.cpp @@ -301,10 +301,12 @@ void renderer::end() { } + // For pseudo-transparency, capture the contents of the rendered bar and + // composite it against the desktop wallpaper. This way transparent parts of + // the bar will be filled by the wallpaper creating illusion of transparency. if (m_pseudo_transparency) { cairo_pattern_t* barcontents{}; - m_surface->write_png("/tmp/test.png"); - m_context->pop(&barcontents); + m_context->pop(&barcontents); // corresponding push is in renderer::begin auto root_bg = m_background.get_surface(); if (root_bg != nullptr) {