Fix RIGHTCENTER placement of the toolbar. Instead of subtracting borderwidth (bw) from (frame.height))/2 they were multiplied causing wrong placement for this case.
Peter Ganzhorn peter.ganzhorn@gmail.com
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/Toolbar.cc
→
src/Toolbar.cc
@@ -677,7 +677,7 @@ frame.x_hidden += pixel - static_cast<int>(frame.width) - bw;
break; case RIGHTCENTER: frame.x += head_w - static_cast<int>(frame.width) - bw*2; - frame.y += (head_h - static_cast<int>(frame.height))/2 * bw; + frame.y += (head_h - static_cast<int>(frame.height))/2 - bw; frame.x_hidden += static_cast<int>(frame.width) + bw - pixel; break; case RIGHTTOP: