aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-14 23:05:14 (GMT)
committerfluxgen <fluxgen>2004-01-14 23:05:14 (GMT)
commitf305b77709cf0d1253b389af414efed756466621 (patch)
tree108b0f60e68d5a938ab2d3141b7357da5ab169a9
parent09e26fd454f5173057c6c10ab4722c0cf452ac78 (diff)
downloadfluxbox-f305b77709cf0d1253b389af414efed756466621.zip
fluxbox-f305b77709cf0d1253b389af414efed756466621.tar.bz2
no need to do error check for mode left and right
-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,