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:
parent
90dd0b2b9a
commit
c1acf6c05f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue