diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-29 16:26:15 (GMT) |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-29 16:26:15 (GMT) |
commit | a1f647d09cb376ec79ee065161fef5cdf68771e2 (patch) | |
tree | 31e1ef9c82933e9f3114e56d387767f652b6e5dd /src | |
parent | 5905c4623ec93d7e8ec67f485715fa468c416f1c (diff) | |
download | fluxbox-a1f647d09cb376ec79ee065161fef5cdf68771e2.zip fluxbox-a1f647d09cb376ec79ee065161fef5cdf68771e2.tar.bz2 |
Update MinOverlapPlacement.cc
Skip any windows which are not in the same layer as the window to be placed.
Diffstat (limited to 'src')
-rw-r--r-- | src/MinOverlapPlacement.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
144 | it_end = const_windowlist.rend(); | 144 | it_end = const_windowlist.rend(); |
145 | for (; it != it_end; ++it) { | 145 | for (; it != it_end; ++it) { |
146 | if (*it == &win) continue; | 146 | if (*it == &win) continue; |
147 | 147 | if ((*it)->layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it | |
148 | |||
148 | getWindowDimensions(*(*it), left, top, right, bottom); | 149 | getWindowDimensions(*(*it), left, top, right, bottom); |
149 | 150 | ||
150 | // go through the list of regions | 151 | // go through the list of regions |