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:
parent
9f824b89fd
commit
e3300411eb
1 changed files with 2 additions and 2 deletions
|
@ -457,7 +457,7 @@ void FbWinFrame::setFocus(bool newvalue) {
|
||||||
|
|
||||||
int alpha = getAlpha(m_state.focused);
|
int alpha = getAlpha(m_state.focused);
|
||||||
int opaque = 255;
|
int opaque = 255;
|
||||||
if (!FbTk::Transparent::haveComposite()) {
|
if (FbTk::Transparent::haveComposite()) {
|
||||||
std::swap(alpha, opaque);
|
std::swap(alpha, opaque);
|
||||||
}
|
}
|
||||||
m_tab_container.setAlpha(alpha);
|
m_tab_container.setAlpha(alpha);
|
||||||
|
@ -935,7 +935,7 @@ void FbWinFrame::reconfigure() {
|
||||||
if (FbTk::Transparent::haveRender()) {
|
if (FbTk::Transparent::haveRender()) {
|
||||||
int alpha = getAlpha(m_state.focused);
|
int alpha = getAlpha(m_state.focused);
|
||||||
int opaque = 255;
|
int opaque = 255;
|
||||||
if (!FbTk::Transparent::haveComposite()) {
|
if (FbTk::Transparent::haveComposite()) {
|
||||||
std::swap(alpha, opaque);
|
std::swap(alpha, opaque);
|
||||||
}
|
}
|
||||||
m_tab_container.setAlpha(alpha);
|
m_tab_container.setAlpha(alpha);
|
||||||
|
|
Loading…
Reference in a new issue