mirror of
https://github.com/polybar/polybar.git
synced 2025-04-14 17:33:17 -04:00
fix: Apply x position once to action blocks
This commit is contained in:
parent
ccbb38798d
commit
3a01bcf308
1 changed files with 2 additions and 2 deletions
|
@ -663,8 +663,8 @@ bool renderer::on(const action_end& evt) {
|
|||
break;
|
||||
}
|
||||
|
||||
action->start_x += m_bar.pos.x + m_rect.x;
|
||||
action->end_x += m_bar.pos.x + m_rect.x;
|
||||
action->start_x += m_rect.x;
|
||||
action->end_x += m_rect.x;
|
||||
|
||||
m_log.trace_x("renderer: action_end(%i, %s, %i)", static_cast<uint8_t>(btn), action->command, action->width());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue