From e117f5acd6e531b6f77c41cab894d11560050e5c Mon Sep 17 00:00:00 2001 From: Peter Ganzhorn Date: Fri, 1 May 2015 13:41:43 +0200 Subject: Fix RIGHTCENTER placement of the toolbar. Instead of subtracting borderwidth (bw) from (frame.height))/2 they were multiplied causing wrong placement for this case. --- src/Toolbar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 86b5e5e..4f8804f 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -677,7 +677,7 @@ void Toolbar::setPlacement(Toolbar::Placement where) { break; case RIGHTCENTER: frame.x += head_w - static_cast(frame.width) - bw*2; - frame.y += (head_h - static_cast(frame.height))/2 * bw; + frame.y += (head_h - static_cast(frame.height))/2 - bw; frame.x_hidden += static_cast(frame.width) + bw - pixel; break; case RIGHTTOP: -- cgit v0.11.2