aboutsummaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-12-21 16:12:19 (GMT)
committerrathnor <rathnor>2003-12-21 16:12:19 (GMT)
commit06cd80c6c89522acec32291743ebb7b2c42a8129 (patch)
tree83db44f7351817492f31a0bf65959da7b80d3cc6 /src/Container.cc
parentdfdb8219fa74defd4608f3574128f95eb9fcde64 (diff)
downloadfluxbox_pavel-06cd80c6c89522acec32291743ebb7b2c42a8129.zip
fluxbox_pavel-06cd80c6c89522acec32291743ebb7b2c42a8129.tar.bz2
fix rounding
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc11
1 files changed, 4 insertions, 7 deletions
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,