diff options
author | Peter Ganzhorn <peter.ganzhorn@gmail.com> | 2015-05-01 11:41:43 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-05-01 12:19:58 (GMT) |
commit | e117f5acd6e531b6f77c41cab894d11560050e5c (patch) | |
tree | 9e4fe370c380438114becdcff38c2465dd1ba2ae /src | |
parent | 949e973dd2fdba1f6069e4ab4cca75ce3919a000 (diff) | |
download | fluxbox-e117f5acd6e531b6f77c41cab894d11560050e5c.zip fluxbox-e117f5acd6e531b6f77c41cab894d11560050e5c.tar.bz2 |
Fix RIGHTCENTER placement of the toolbar. Instead of subtracting borderwidth (bw) from (frame.height))/2 they were multiplied causing wrong placement for this case.
Diffstat (limited to 'src')
-rw-r--r-- | src/Toolbar.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
677 | break; | 677 | break; |
678 | case RIGHTCENTER: | 678 | case RIGHTCENTER: |
679 | frame.x += head_w - static_cast<int>(frame.width) - bw*2; | 679 | frame.x += head_w - static_cast<int>(frame.width) - bw*2; |
680 | frame.y += (head_h - static_cast<int>(frame.height))/2 * bw; | 680 | frame.y += (head_h - static_cast<int>(frame.height))/2 - bw; |
681 | frame.x_hidden += static_cast<int>(frame.width) + bw - pixel; | 681 | frame.x_hidden += static_cast<int>(frame.width) + bw - pixel; |
682 | break; | 682 | break; |
683 | case RIGHTTOP: | 683 | case RIGHTTOP: |