all repos — fluxbox @ f305b77709cf0d1253b389af414efed756466621

custom fork of the fluxbox windowmanager

no need to do error check for mode left and right
fluxgen fluxgen
commit

f305b77709cf0d1253b389af414efed756466621

parent

09e26fd454f5173057c6c10ab4722c0cf452ac78

1 files changed, 8 insertions(+), 7 deletions(-)

jump to
M src/Container.ccsrc/Container.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Container.cc,v 1.11 2004/01/13 14:41:32 rathnor Exp $ +// $Id: Container.cc,v 1.12 2004/01/14 23:05:14 fluxgen Exp $ #include "Container.hh"

@@ -206,12 +206,13 @@ next_x = width() - max_width_per_client + borderW;

} for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) { - if (rounding_error != 0) { - --rounding_error; - extra = 1; - } else { - extra = 0; - } + // we only need to do error stuff with alignment RELATIVE + if (rounding_error != 0 && alignment() == RELATIVE) { + --rounding_error; + extra = 1; + } else { + extra = 0; + } // resize each clients including border in size (*it)->moveResize(next_x, -borderW,