From a1f647d09cb376ec79ee065161fef5cdf68771e2 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 29 Jul 2015 12:26:15 -0400 Subject: Update MinOverlapPlacement.cc Skip any windows which are not in the same layer as the window to be placed. --- src/MinOverlapPlacement.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MinOverlapPlacement.cc b/src/MinOverlapPlacement.cc index 78cadb4..b715f70 100644 --- a/src/MinOverlapPlacement.cc +++ b/src/MinOverlapPlacement.cc @@ -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 -- cgit v0.11.2