1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00

fix: Clear the pixmap properly when shifting content

Closes jaagr/lemonbuddy#100
This commit is contained in:
Michael Carlberg 2016-10-16 12:27:28 +02:00
parent 90dd0b2b9a
commit c1acf6c05f

View file

@ -920,7 +920,8 @@ class bar : public xpp::event::sink<evt::button_press, evt::expose, evt::propert
x = m_bar.width - chr_width - m_borders[border::RIGHT].size;
}
draw_util::fill(m_connection, m_pixmap, m_gcontexts.at(gc::BG), x, 0, chr_width, m_bar.height);
draw_util::fill(
m_connection, m_pixmap, m_gcontexts.at(gc::BG), x, 0, m_bar.width - x, m_bar.height);
// Translate pos of clickable areas
if (m_bar.align != alignment::LEFT)