aboutsummaryrefslogtreecommitdiff
path: root/src/ColSmartPlacement.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-03-20 13:18:31 (GMT)
committersimonb <simonb>2006-03-20 13:18:31 (GMT)
commit8e4f538cf9872ab0f44ad1e467d256e6626f768c (patch)
tree5e0327c361e11254369cedf385428766f9b732d4 /src/ColSmartPlacement.cc
parentf2d3fff4d4db7677814379139dcec3e31fc68047 (diff)
downloadfluxbox-8e4f538cf9872ab0f44ad1e467d256e6626f768c.zip
fluxbox-8e4f538cf9872ab0f44ad1e467d256e6626f768c.tar.bz2
some small placement fixes
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