aboutsummaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-04 12:16:26 (GMT)
committersimonb <simonb>2006-04-04 12:16:26 (GMT)
commitc243fa897f37dabeade187ac74ea5cd175e80a22 (patch)
tree6200f9e4daa633ba884af79c92a6f5a4f7a57a70 /src/Container.cc
parent839d9c669be5164413769b77e98cda15bba77a6b (diff)
downloadfluxbox_pavel-c243fa897f37dabeade187ac74ea5cd175e80a22.zip
fluxbox_pavel-c243fa897f37dabeade187ac74ea5cd175e80a22.tar.bz2
rotated XFonts (and minor ext tab alignment fixes)
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Container.cc b/src/Container.cc
index 6f811ef..db3e401 100644
--- a/src/Container.cc
+++ b/src/Container.cc
@@ -382,6 +382,7 @@ void Container::repositionItems() {
382 unsigned int total_width; 382 unsigned int total_width;
383 unsigned int cur_width; 383 unsigned int cur_width;
384 unsigned int height; 384 unsigned int height;
385
385 // unrotate 386 // unrotate
386 if (m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) { 387 if (m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) {
387 total_width = cur_width = width(); 388 total_width = cur_width = width();
@@ -438,11 +439,6 @@ void Container::repositionItems() {
438 next_x = total_width - max_width_per_client - borderW; 439 next_x = total_width - max_width_per_client - borderW;
439 } 440 }
440 441
441 // when rot270, our borderwidth adjustment actually needs to be at the
442 // other end (i.e. top), so this puts it there
443 if (m_orientation == FbTk::ROT270)
444 next_x += 2*borderW;
445
446 int tmpx, tmpy; 442 int tmpx, tmpy;
447 unsigned int tmpw, tmph; 443 unsigned int tmpw, tmph;
448 for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) { 444 for (; it != it_end; ++it, next_x += direction*(max_width_per_client + borderW + extra)) {
@@ -460,7 +456,7 @@ void Container::repositionItems() {
460 tmph = height; 456 tmph = height;
461 457
462 FbTk::translateCoords(m_orientation, tmpx, tmpy, total_width, height); 458 FbTk::translateCoords(m_orientation, tmpx, tmpy, total_width, height);
463 FbTk::translatePosition(m_orientation, tmpx, tmpy, tmpw, tmph); 459 FbTk::translatePosition(m_orientation, tmpx, tmpy, tmpw, tmph, borderW);
464 FbTk::translateSize(m_orientation, tmpw, tmph); 460 FbTk::translateSize(m_orientation, tmpw, tmph);
465 461
466 // resize each clients including border in size 462 // resize each clients including border in size