diff options
author | fluxgen <fluxgen> | 2007-01-27 20:34:57 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2007-01-27 20:34:57 (GMT) |
commit | bbcfc75cc9eb8cf560b7a4f5f87487f73f45de20 (patch) | |
tree | 9edb0b92924269e3d03e56e17e061fcb8e322dc1 /src | |
parent | a8003ba2c0b4cb6904392d7c5bad6c4981402368 (diff) | |
download | fluxbox-bbcfc75cc9eb8cf560b7a4f5f87487f73f45de20.zip fluxbox-bbcfc75cc9eb8cf560b7a4f5f87487f73f45de20.tar.bz2 |
minor cleaning
Diffstat (limited to 'src')
-rw-r--r-- | src/FbWinFrame.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index c0a4a21..30d8389 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -510,7 +510,8 @@ void FbWinFrame::setFocus(bool newvalue) { | |||
510 | 510 | ||
511 | m_focused = newvalue; | 511 | m_focused = newvalue; |
512 | 512 | ||
513 | if (FbTk::Transparent::haveRender() && getAlpha(true) != getAlpha(false)) { // different alpha for focused and unfocused | 513 | if (FbTk::Transparent::haveRender() && |
514 | getAlpha(true) != getAlpha(false)) { // different alpha for focused and unfocused | ||
514 | unsigned char alpha = getAlpha(m_focused); | 515 | unsigned char alpha = getAlpha(m_focused); |
515 | if (FbTk::Transparent::haveComposite()) { | 516 | if (FbTk::Transparent::haveComposite()) { |
516 | m_tab_container.setAlpha(255); | 517 | m_tab_container.setAlpha(255); |
@@ -533,8 +534,7 @@ void FbWinFrame::setFocus(bool newvalue) { | |||
533 | } | 534 | } |
534 | 535 | ||
535 | void FbWinFrame::setAlpha(bool focused, unsigned char alpha) { | 536 | void FbWinFrame::setAlpha(bool focused, unsigned char alpha) { |
536 | if (m_use_default_alpha == 2) | 537 | if (m_use_default_alpha == 2) { |
537 | { | ||
538 | /// Set basic defaults | 538 | /// Set basic defaults |
539 | m_focused_alpha = getAlpha(true); | 539 | m_focused_alpha = getAlpha(true); |
540 | m_unfocused_alpha = getAlpha(false); | 540 | m_unfocused_alpha = getAlpha(false); |
@@ -546,7 +546,7 @@ void FbWinFrame::setAlpha(bool focused, unsigned char alpha) { | |||
546 | else | 546 | else |
547 | m_unfocused_alpha = alpha; | 547 | m_unfocused_alpha = alpha; |
548 | 548 | ||
549 | if(m_focused == focused) | 549 | if (m_focused == focused) |
550 | m_window.setOpaque(alpha); | 550 | m_window.setOpaque(alpha); |
551 | } | 551 | } |
552 | 552 | ||