Update MinOverlapPlacement.cc

Skip any windows which are not in the same layer as the window to be placed.
This commit is contained in:
Ken Moore 2015-07-29 12:26:15 -04:00
parent 5905c4623e
commit a1f647d09c

View file

@ -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