aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-29 16:22:22 (GMT)
committerKen Moore <moorekou@gmail.com>2015-07-29 16:22:22 (GMT)
commit5905c4623ec93d7e8ec67f485715fa468c416f1c (patch)
treea891961243fc526211d91e29679504a23544ed03 /src
parent17f8a936cef98842f0bc916043e8ae36209bdfa1 (diff)
downloadfluxbox-5905c4623ec93d7e8ec67f485715fa468c416f1c.zip
fluxbox-5905c4623ec93d7e8ec67f485715fa468c416f1c.tar.bz2
Update ColSmartPlacement.cc
Skip any window that is not in the same layer as the window to be placed.
Diffstat (limited to 'src')
-rw-r--r--src/ColSmartPlacement.cc2
1 files changed, 2 insertions, 0 deletions
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,
99 std::list<FluxboxWindow *>::const_iterator it_end = windowlist.end(); 99 std::list<FluxboxWindow *>::const_iterator it_end = windowlist.end();
100 for (; it != it_end && placed; ++it) { 100 for (; it != it_end && placed; ++it) {
101 if (*it == &win) continue; 101 if (*it == &win) continue;
102 if ((*it)->layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it
103
102 int bw = 2 * (*it)->fbWindow().borderWidth(); 104 int bw = 2 * (*it)->fbWindow().borderWidth();
103 int curr_x = (*it)->x() - (*it)->xOffset(); 105 int curr_x = (*it)->x() - (*it)->xOffset();
104 int curr_y = (*it)->y() - (*it)->yOffset(); 106 int curr_y = (*it)->y() - (*it)->yOffset();