aboutsummaryrefslogtreecommitdiff
path: root/src/ColSmartPlacement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ColSmartPlacement.cc')
-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();