aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbWinFrame.cc8
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
535void FbWinFrame::setAlpha(bool focused, unsigned char alpha) { 536void 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