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

fix: Revert to old offset behaviour

The offset-x should not affect the width
of the bar window

Closes jaagr/lemonbuddy#79
This commit is contained in:
Michael Carlberg 2016-10-14 10:38:06 +02:00
parent 46976d10ff
commit fcd30c5320

View file

@ -171,7 +171,6 @@ class bar : public xpp::event::sink<evt::button_press, evt::expose> {
m_bar.height = m_bar.monitor->h * (m_bar.height / 100.0) + 0.5f; m_bar.height = m_bar.monitor->h * (m_bar.height / 100.0) + 0.5f;
// apply offsets // apply offsets
m_bar.width -= m_bar.offset_x * 2;
m_bar.x = m_bar.offset_x + m_bar.monitor->x; m_bar.x = m_bar.offset_x + m_bar.monitor->x;
m_bar.y = m_bar.offset_y + m_bar.monitor->y; m_bar.y = m_bar.offset_y + m_bar.monitor->y;