fix titlebar transparency in some cases
simonb simonb
2 files changed,
6 insertions(+),
1 deletions(-)
M
src/FbWinFrame.cc
→
src/FbWinFrame.cc
@@ -271,7 +271,7 @@ return;
m_focused = newvalue; - if (theme().focusedAlpha() != theme().unfocusedAlpha()) { + if (FbTk::Transparent::haveRender() && theme().focusedAlpha() != theme().unfocusedAlpha()) { unsigned char alpha = (m_focused?theme().focusedAlpha():theme().unfocusedAlpha()); if (FbTk::Transparent::haveComposite()) { m_window.setOpaque(alpha);@@ -280,6 +280,8 @@ LabelList::iterator btn_it = m_labelbuttons.begin();
LabelList::iterator btn_it_end = m_labelbuttons.end(); for (; btn_it != btn_it_end; ++btn_it) { (*btn_it)->setAlpha(alpha); + if (m_current_label != (*btn_it)) + (*btn_it)->updateBackground(false); } } }