diff --git a/src/MinOverlapPlacement.cc b/src/MinOverlapPlacement.cc index 78cadb45..b715f70c 100644 --- a/src/MinOverlapPlacement.cc +++ b/src/MinOverlapPlacement.cc @@ -144,7 +144,8 @@ bool MinOverlapPlacement::placeWindow(const FluxboxWindow &win, int head, it_end = const_windowlist.rend(); for (; it != it_end; ++it) { if (*it == &win) continue; - + if ((*it)->layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it + getWindowDimensions(*(*it), left, top, right, bottom); // go through the list of regions