From 17f8a936cef98842f0bc916043e8ae36209bdfa1 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 29 Jul 2015 12:17:51 -0400 Subject: Update RowSmartPlacement.cc Skip any window that does not exist in the same layer as the window to be placed. --- src/RowSmartPlacement.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RowSmartPlacement.cc b/src/RowSmartPlacement.cc index eca867f..95a8257 100644 --- a/src/RowSmartPlacement.cc +++ b/src/RowSmartPlacement.cc @@ -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(); -- cgit v0.11.2