diff options
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r-- | src/FbWinFrame.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index caf3ce3..48d6e87 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -457,7 +457,7 @@ void FbWinFrame::setFocus(bool newvalue) { | |||
457 | 457 | ||
458 | int alpha = getAlpha(m_state.focused); | 458 | int alpha = getAlpha(m_state.focused); |
459 | int opaque = 255; | 459 | int opaque = 255; |
460 | if (!FbTk::Transparent::haveComposite()) { | 460 | if (FbTk::Transparent::haveComposite()) { |
461 | std::swap(alpha, opaque); | 461 | std::swap(alpha, opaque); |
462 | } | 462 | } |
463 | m_tab_container.setAlpha(alpha); | 463 | m_tab_container.setAlpha(alpha); |
@@ -935,7 +935,7 @@ void FbWinFrame::reconfigure() { | |||
935 | if (FbTk::Transparent::haveRender()) { | 935 | if (FbTk::Transparent::haveRender()) { |
936 | int alpha = getAlpha(m_state.focused); | 936 | int alpha = getAlpha(m_state.focused); |
937 | int opaque = 255; | 937 | int opaque = 255; |
938 | if (!FbTk::Transparent::haveComposite()) { | 938 | if (FbTk::Transparent::haveComposite()) { |
939 | std::swap(alpha, opaque); | 939 | std::swap(alpha, opaque); |
940 | } | 940 | } |
941 | m_tab_container.setAlpha(alpha); | 941 | m_tab_container.setAlpha(alpha); |