aboutsummaryrefslogtreecommitdiff
path: root/src/ColSmartPlacement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ColSmartPlacement.cc')
-rw-r--r--src/ColSmartPlacement.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ColSmartPlacement.cc b/src/ColSmartPlacement.cc
index 5b84168..cb3fbd9 100644
--- a/src/ColSmartPlacement.cc
+++ b/src/ColSmartPlacement.cc
@@ -66,7 +66,7 @@ bool ColSmartPlacement::placeWindow(const std::vector<FluxboxWindow *> &windowli
66 while (!placed && 66 while (!placed &&
67 (left_right ? test_x + win_w <= head_right 67 (left_right ? test_x + win_w <= head_right
68 : test_x >= head_left)) { 68 : test_x >= head_left)) {
69 69
70 if (left_right) 70 if (left_right)
71 next_x = head_right; // it will get shrunk 71 next_x = head_right; // it will get shrunk
72 else 72 else
@@ -90,8 +90,8 @@ bool ColSmartPlacement::placeWindow(const std::vector<FluxboxWindow *> &windowli
90 std::vector<FluxboxWindow *>::const_iterator it_end = 90 std::vector<FluxboxWindow *>::const_iterator it_end =
91 windowlist.end(); 91 windowlist.end();
92 for (; it != it_end && placed; ++it) { 92 for (; it != it_end && placed; ++it) {
93 int curr_x = (*it)->x() + (*it)->xOffset(); 93 int curr_x = (*it)->x() - (*it)->xOffset();
94 int curr_y = (*it)->y() + (*it)->yOffset(); 94 int curr_y = (*it)->y() - (*it)->yOffset();
95 int curr_w = (*it)->width() + (*it)->fbWindow().borderWidth()*2 + (*it)->widthOffset(); 95 int curr_w = (*it)->width() + (*it)->fbWindow().borderWidth()*2 + (*it)->widthOffset();
96 int curr_h = (*it)->height() + (*it)->fbWindow().borderWidth()*2 + (*it)->heightOffset(); 96 int curr_h = (*it)->height() + (*it)->fbWindow().borderWidth()*2 + (*it)->heightOffset();
97 97