fix titlebar transparency in some cases

This commit is contained in:
simonb 2005-05-07 06:25:51 +00:00
parent 4338fbec76
commit a65511a32e
2 changed files with 6 additions and 1 deletions

View file

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

View file

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