Fix: typo during refactoring

Commit 63d9d69 introduced a bug, which has manifested itself by setting
window transparent state to the fully opaque (255).
This commit is contained in:
Arkadiusz Bokowy 2015-02-07 21:12:13 +01:00 committed by Mathias Gumz
parent 9f824b89fd
commit e3300411eb

View file

@ -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);