all repos — fluxbox @ 82d0de9ef46d38288d2f1daa77ac18276d57390f

custom fork of the fluxbox windowmanager

cosmetic
Mathias Gumz akira at fluxbox dot org
commit

82d0de9ef46d38288d2f1daa77ac18276d57390f

parent

8a08110f194170cff462d292d5851735aa5f19ed

1 files changed, 5 insertions(+), 6 deletions(-)

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

@@ -95,16 +95,15 @@ placed = true;

next_y = test_y + change_y; - std::list<FluxboxWindow *>::const_iterator it = - windowlist.begin(); - std::list<FluxboxWindow *>::const_iterator it_end = - windowlist.end(); + std::list<FluxboxWindow *>::const_iterator it = windowlist.begin(); + std::list<FluxboxWindow *>::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 &&