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:
parent
69d13337fe
commit
17f8a936ce
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue