From 06cd80c6c89522acec32291743ebb7b2c42a8129 Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 21 Dec 2003 16:12:19 +0000 Subject: fix rounding --- ChangeLog | 2 ++ src/Container.cc | 11 ++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e08429..cd3a46b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.7: *03/12/21: + * Fix rounding on Iconbar (Simon) + Container.cc * And another attempt at sloppy focus issues (Simon) WinClient.cc Window.cc fluxbox.cc * Fixed "mozilla" input focus bug (Henrik) diff --git a/src/Container.cc b/src/Container.cc index b6bc5b8..e39c582 100644 --- a/src/Container.cc +++ b/src/Container.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Container.cc,v 1.9 2003/12/12 14:35:34 fluxgen Exp $ +// $Id: Container.cc,v 1.10 2003/12/21 16:12:19 rathnor Exp $ #include "Container.hh" @@ -200,15 +200,12 @@ void Container::repositionItems() { } for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) { - //!! TODO: check this more carefully, seems like error doesn't work with even numbers - /* if (rounding_error != 0) { - --rounding_error; - extra = 0; + --rounding_error; + extra = 1; } else { - extra = 0; + extra = 0; } - */ // resize each clients including border in size (*it)->moveResize(next_x, -borderW, -- cgit v0.11.2