From 5905c4623ec93d7e8ec67f485715fa468c416f1c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 29 Jul 2015 12:22:22 -0400 Subject: Update ColSmartPlacement.cc Skip any window that is not in the same layer as the window to be placed. --- src/ColSmartPlacement.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ColSmartPlacement.cc b/src/ColSmartPlacement.cc index b0bcf68..66f3a02 100644 --- a/src/ColSmartPlacement.cc +++ b/src/ColSmartPlacement.cc @@ -99,6 +99,8 @@ bool ColSmartPlacement::placeWindow(const FluxboxWindow &win, int head, std::list::const_iterator it_end = windowlist.end(); for (; it != it_end && placed; ++it) { if (*it == &win) continue; + if ((*it)->layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it + int bw = 2 * (*it)->fbWindow().borderWidth(); int curr_x = (*it)->x() - (*it)->xOffset(); int curr_y = (*it)->y() - (*it)->yOffset(); -- cgit v0.11.2