From 82d0de9ef46d38288d2f1daa77ac18276d57390f Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 8 Sep 2010 22:31:41 +0200 Subject: cosmetic --- src/ColSmartPlacement.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ColSmartPlacement.cc b/src/ColSmartPlacement.cc index 251d8f9..b0bcf68 100644 --- a/src/ColSmartPlacement.cc +++ b/src/ColSmartPlacement.cc @@ -95,16 +95,15 @@ bool ColSmartPlacement::placeWindow(const FluxboxWindow &win, int head, next_y = test_y + change_y; - std::list::const_iterator it = - windowlist.begin(); - std::list::const_iterator it_end = - windowlist.end(); + std::list::const_iterator it = windowlist.begin(); + std::list::const_iterator it_end = windowlist.end(); for (; it != it_end && placed; ++it) { if (*it == &win) continue; + int bw = 2 * (*it)->fbWindow().borderWidth(); int curr_x = (*it)->x() - (*it)->xOffset(); int curr_y = (*it)->y() - (*it)->yOffset(); - int curr_w = (*it)->width() + (*it)->fbWindow().borderWidth()*2 + (*it)->widthOffset(); - int curr_h = (*it)->height() + (*it)->fbWindow().borderWidth()*2 + (*it)->heightOffset(); + int curr_w = (*it)->width() + bw + (*it)->widthOffset(); + int curr_h = (*it)->height() + bw + (*it)->heightOffset(); if (curr_x < test_x + win_w && curr_x + curr_w > test_x && -- cgit v0.11.2