From e3300411eb8ca05ce8fffec74d3a182cc74404d2 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Sat, 7 Feb 2015 21:12:13 +0100 Subject: Fix: typo during refactoring Commit 63d9d69 introduced a bug, which has manifested itself by setting window transparent state to the fully opaque (255). --- src/FbWinFrame.cc | 4 ++-- 1 file 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) { 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); -- cgit v0.11.2