aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Container.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Container.cc b/src/Container.cc
index 242a7f1..d3072a6 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.7 2003/10/31 10:37:09 rathnor Exp $ 23// $Id: Container.cc,v 1.8 2003/12/07 15:45:28 fluxgen Exp $
24 24
25#include "Container.hh" 25#include "Container.hh"
26 26
@@ -181,14 +181,17 @@ void Container::repositionItems() {
181 int rounding_error = width() - ((maxWidthPerClient() + borderW)* m_item_list.size() - borderW); 181 int rounding_error = width() - ((maxWidthPerClient() + borderW)* m_item_list.size() - borderW);
182 182
183 int next_x = -borderW; // zero so the border of the first shows 183 int next_x = -borderW; // zero so the border of the first shows
184 int extra = 0; 184 int extra = 0;
185 for (; it != it_end; ++it, next_x += max_width_per_client + borderW + extra) { 185 for (; it != it_end; ++it, next_x += max_width_per_client + borderW + extra) {
186 //!! TODO: check this more carefully, seems like error doesn't work with even numbers
187 /*
186 if (rounding_error != 0) { 188 if (rounding_error != 0) {
187 --rounding_error; 189 --rounding_error;
188 extra = 1; 190 extra = 0;
189 } else { 191 } else {
190 extra = 0; 192 extra = 0;
191 } 193 }
194 */
192 // resize each clients including border in size 195 // resize each clients including border in size
193 (*it)->moveResize(next_x, 196 (*it)->moveResize(next_x,
194 -borderW, 197 -borderW,