diff options
author | simonb <simonb> | 2005-05-07 06:25:51 (GMT) |
---|---|---|
committer | simonb <simonb> | 2005-05-07 06:25:51 (GMT) |
commit | a65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b (patch) | |
tree | b07dac4bdfdcb1c1537b3fceb33d9d4e445a921e | |
parent | 4338fbec76d8ca822dcb21c66b6d8e492ee49020 (diff) | |
download | fluxbox_lack-a65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b.zip fluxbox_lack-a65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b.tar.bz2 |
fix titlebar transparency in some cases
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/FbWinFrame.cc | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 0.9.13 | 2 | Changes for 0.9.13 |
3 | *05/05/07: | ||
4 | * Fix titlebar transparency in some (tabbed) cases (Simon) | ||
5 | FbWinFrame.cc | ||
3 | *05/05/06: | 6 | *05/05/06: |
4 | * Added new Buttons for the Titlebar of a Window (Mathias) | 7 | * Added new Buttons for the Titlebar of a Window (Mathias) |
5 | - Shade - just like the "Stick"-button | 8 | - 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) { | |||
271 | 271 | ||
272 | m_focused = newvalue; | 272 | m_focused = newvalue; |
273 | 273 | ||
274 | if (theme().focusedAlpha() != theme().unfocusedAlpha()) { | 274 | if (FbTk::Transparent::haveRender() && theme().focusedAlpha() != theme().unfocusedAlpha()) { |
275 | unsigned char alpha = (m_focused?theme().focusedAlpha():theme().unfocusedAlpha()); | 275 | unsigned char alpha = (m_focused?theme().focusedAlpha():theme().unfocusedAlpha()); |
276 | if (FbTk::Transparent::haveComposite()) { | 276 | if (FbTk::Transparent::haveComposite()) { |
277 | m_window.setOpaque(alpha); | 277 | m_window.setOpaque(alpha); |
@@ -280,6 +280,8 @@ void FbWinFrame::setFocus(bool newvalue) { | |||
280 | LabelList::iterator btn_it_end = m_labelbuttons.end(); | 280 | LabelList::iterator btn_it_end = m_labelbuttons.end(); |
281 | for (; btn_it != btn_it_end; ++btn_it) { | 281 | for (; btn_it != btn_it_end; ++btn_it) { |
282 | (*btn_it)->setAlpha(alpha); | 282 | (*btn_it)->setAlpha(alpha); |
283 | if (m_current_label != (*btn_it)) | ||
284 | (*btn_it)->updateBackground(false); | ||
283 | } | 285 | } |
284 | } | 286 | } |
285 | } | 287 | } |