all repos — fluxbox @ e117f5acd6e531b6f77c41cab894d11560050e5c

custom fork of the fluxbox windowmanager

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
commit

e117f5acd6e531b6f77c41cab894d11560050e5c

parent

949e973dd2fdba1f6069e4ab4cca75ce3919a000

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/Toolbar.ccsrc/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: