From a65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 7 May 2005 06:25:51 +0000 Subject: fix titlebar transparency in some cases --- ChangeLog | 3 +++ src/FbWinFrame.cc | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 223ab39..805a952 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.13 +*05/05/07: + * Fix titlebar transparency in some (tabbed) cases (Simon) + FbWinFrame.cc *05/05/06: * Added new Buttons for the Titlebar of a Window (Mathias) - Shade - just like the "Stick"-button diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index cdbc6c1..2b94ae3 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -271,7 +271,7 @@ void FbWinFrame::setFocus(bool newvalue) { 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 @@ void FbWinFrame::setFocus(bool newvalue) { 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); } } } -- cgit v0.11.2