diff options
author | rathnor <rathnor> | 2003-12-21 16:12:19 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-12-21 16:12:19 (GMT) |
commit | 06cd80c6c89522acec32291743ebb7b2c42a8129 (patch) | |
tree | 83db44f7351817492f31a0bf65959da7b80d3cc6 | |
parent | dfdb8219fa74defd4608f3574128f95eb9fcde64 (diff) | |
download | fluxbox_lack-06cd80c6c89522acec32291743ebb7b2c42a8129.zip fluxbox_lack-06cd80c6c89522acec32291743ebb7b2c42a8129.tar.bz2 |
fix rounding
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/Container.cc | 11 |
2 files changed, 6 insertions, 7 deletions
@@ -1,6 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 0.9.7: | 2 | Changes for 0.9.7: |
3 | *03/12/21: | 3 | *03/12/21: |
4 | * Fix rounding on Iconbar (Simon) | ||
5 | Container.cc | ||
4 | * And another attempt at sloppy focus issues (Simon) | 6 | * And another attempt at sloppy focus issues (Simon) |
5 | WinClient.cc Window.cc fluxbox.cc | 7 | WinClient.cc Window.cc fluxbox.cc |
6 | * Fixed "mozilla" input focus bug (Henrik) | 8 | * 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 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: Container.cc,v 1.9 2003/12/12 14:35:34 fluxgen Exp $ | 23 | // $Id: Container.cc,v 1.10 2003/12/21 16:12:19 rathnor Exp $ |
24 | 24 | ||
25 | #include "Container.hh" | 25 | #include "Container.hh" |
26 | 26 | ||
@@ -200,15 +200,12 @@ void Container::repositionItems() { | |||
200 | } | 200 | } |
201 | 201 | ||
202 | for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) { | 202 | for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) { |
203 | //!! TODO: check this more carefully, seems like error doesn't work with even numbers | ||
204 | /* | ||
205 | if (rounding_error != 0) { | 203 | if (rounding_error != 0) { |
206 | --rounding_error; | 204 | --rounding_error; |
207 | extra = 0; | 205 | extra = 1; |
208 | } else { | 206 | } else { |
209 | extra = 0; | 207 | extra = 0; |
210 | } | 208 | } |
211 | */ | ||
212 | // resize each clients including border in size | 209 | // resize each clients including border in size |
213 | (*it)->moveResize(next_x, | 210 | (*it)->moveResize(next_x, |
214 | -borderW, | 211 | -borderW, |