summaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Container.cc b/src/Container.cc
index e41e4b5..b60b460 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.11 2004/01/13 14:41:32 rathnor Exp $ 23// $Id: Container.cc,v 1.12 2004/01/14 23:05:14 fluxgen Exp $
24 24
25#include "Container.hh" 25#include "Container.hh"
26 26
@@ -206,12 +206,13 @@ void Container::repositionItems() {
206 } 206 }
207 207
208 for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) { 208 for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) {
209 if (rounding_error != 0) { 209 // we only need to do error stuff with alignment RELATIVE
210 --rounding_error; 210 if (rounding_error != 0 && alignment() == RELATIVE) {
211 extra = 1; 211 --rounding_error;
212 } else { 212 extra = 1;
213 extra = 0; 213 } else {
214 } 214 extra = 0;
215 }
215 // resize each clients including border in size 216 // resize each clients including border in size
216 (*it)->moveResize(next_x, 217 (*it)->moveResize(next_x,
217 -borderW, 218 -borderW,