aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-29 16:17:51 (GMT)
committerKen Moore <moorekou@gmail.com>2015-07-29 16:17:51 (GMT)
commit17f8a936cef98842f0bc916043e8ae36209bdfa1 (patch)
tree5e1c40eb6332ff9d9c67419f33254b7b4e704ac8
parent69d13337fe7c54ef26e02ca285246ccdfe03c319 (diff)
downloadfluxbox-17f8a936cef98842f0bc916043e8ae36209bdfa1.zip
fluxbox-17f8a936cef98842f0bc916043e8ae36209bdfa1.tar.bz2
Update RowSmartPlacement.cc
Skip any window that does not exist in the same layer as the window to be placed.
-rw-r--r--src/RowSmartPlacement.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/RowSmartPlacement.cc b/src/RowSmartPlacement.cc
index eca867f..95a8257 100644
--- a/src/RowSmartPlacement.cc
+++ b/src/RowSmartPlacement.cc
@@ -115,6 +115,7 @@ bool RowSmartPlacement::placeWindow(const FluxboxWindow &win, int head,
115 for (; win_it != win_it_end && placed; ++win_it) { 115 for (; win_it != win_it_end && placed; ++win_it) {
116 FluxboxWindow &window = **win_it; 116 FluxboxWindow &window = **win_it;
117 if (&window == &win) continue; 117 if (&window == &win) continue;
118 if (window.layerNum() != win.layerNum() ){ continue; } //windows are in different layers - skip it
118 119
119 int curr_x = window.x() - window.xOffset(); // minus offset to get back up to fake place 120 int curr_x = window.x() - window.xOffset(); // minus offset to get back up to fake place
120 int curr_y = window.y() - window.yOffset(); 121 int curr_y = window.y() - window.yOffset();