all repos — fluxbox @ 65d0aa333d489c0c81a9c214d0900b7107f829be

custom fork of the fluxbox windowmanager

tmp fix for error in toolbar
fluxgen fluxgen
commit

65d0aa333d489c0c81a9c214d0900b7107f829be

parent

6ae6cebd64d5b760d4a83a571f4c4c4052f681bc

1 files changed, 6 insertions(+), 3 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.7 2003/10/31 10:37:09 rathnor Exp $ +// $Id: Container.cc,v 1.8 2003/12/07 15:45:28 fluxgen Exp $ #include "Container.hh"

@@ -181,14 +181,17 @@

int rounding_error = width() - ((maxWidthPerClient() + borderW)* m_item_list.size() - borderW); int next_x = -borderW; // zero so the border of the first shows - int extra = 0; + int extra = 0; for (; it != it_end; ++it, next_x += max_width_per_client + borderW + extra) { + //!! TODO: check this more carefully, seems like error doesn't work with even numbers + /* if (rounding_error != 0) { --rounding_error; - extra = 1; + extra = 0; } else { extra = 0; } + */ // resize each clients including border in size (*it)->moveResize(next_x, -borderW,