all repos — fluxbox @ e3300411eb8ca05ce8fffec74d3a182cc74404d2

custom fork of the fluxbox windowmanager

Fix: typo during refactoring

Commit 63d9d69 introduced a bug, which has manifested itself by setting
window transparent state to the fully opaque (255).
Arkadiusz Bokowy arkadiusz.bokowy@gmail.com
commit

e3300411eb8ca05ce8fffec74d3a182cc74404d2

parent

9f824b89fd2f7f7705f4ef3d086d34fb5ba520cb

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -457,7 +457,7 @@ getAlpha(true) != getAlpha(false)) { // different alpha for focused and unfocused

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 @@ // update transparency settings

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