Update ColSmartPlacement.cc Skip any window that is not in the same layer as the window to be placed.
Ken Moore moorekou@gmail.com
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/ColSmartPlacement.cc
→
src/ColSmartPlacement.cc
@@ -99,6 +99,8 @@ 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; + if ((*it)->layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it + int bw = 2 * (*it)->fbWindow().borderWidth(); int curr_x = (*it)->x() - (*it)->xOffset(); int curr_y = (*it)->y() - (*it)->yOffset();