diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index caf3ce32..48d6e87e 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -457,7 +457,7 @@ void FbWinFrame::setFocus(bool newvalue) { int alpha = getAlpha(m_state.focused); int opaque = 255; - if (!FbTk::Transparent::haveComposite()) { + if (FbTk::Transparent::haveComposite()) { std::swap(alpha, opaque); } m_tab_container.setAlpha(alpha); @@ -935,7 +935,7 @@ void FbWinFrame::reconfigure() { if (FbTk::Transparent::haveRender()) { int alpha = getAlpha(m_state.focused); int opaque = 255; - if (!FbTk::Transparent::haveComposite()) { + if (FbTk::Transparent::haveComposite()) { std::swap(alpha, opaque); } m_tab_container.setAlpha(alpha);