Update RowSmartPlacement.cc

Skip any window that does not exist in the same layer as the window to be placed.
This commit is contained in:
Ken Moore 2015-07-29 12:17:51 -04:00
parent 69d13337fe
commit 17f8a936ce

View file

@ -115,6 +115,7 @@ bool RowSmartPlacement::placeWindow(const FluxboxWindow &win, int head,
for (; win_it != win_it_end && placed; ++win_it) {
FluxboxWindow &window = **win_it;
if (&window == &win) continue;
if (window.layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it
int curr_x = window.x() - window.xOffset(); // minus offset to get back up to fake place
int curr_y = window.y() - window.yOffset();