mirror of
https://github.com/polybar/polybar.git
synced 2024-11-03 04:33:30 -05:00
fix(renderer): remove debug code, add comment
This commit is contained in:
parent
6237e2d419
commit
70807a5a9f
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
if (m_pseudo_transparency) {
|
||||||
cairo_pattern_t* barcontents{};
|
cairo_pattern_t* barcontents{};
|
||||||
m_surface->write_png("/tmp/test.png");
|
m_context->pop(&barcontents); // corresponding push is in renderer::begin
|
||||||
m_context->pop(&barcontents);
|
|
||||||
|
|
||||||
auto root_bg = m_background.get_surface();
|
auto root_bg = m_background.get_surface();
|
||||||
if (root_bg != nullptr) {
|
if (root_bg != nullptr) {
|
||||||
|
|
Loading…
Reference in a new issue