aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2005-05-07 06:25:51 (GMT)
committersimonb <simonb>2005-05-07 06:25:51 (GMT)
commita65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b (patch)
treeb07dac4bdfdcb1c1537b3fceb33d9d4e445a921e
parent4338fbec76d8ca822dcb21c66b6d8e492ee49020 (diff)
downloadfluxbox-a65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b.zip
fluxbox-a65511a32e2fc6e8869ccdcf85c9d6db61ae5f5b.tar.bz2
fix titlebar transparency in some cases
-rw-r--r--ChangeLog3
-rw-r--r--src/FbWinFrame.cc4
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 223ab39..805a952 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.13 2Changes 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 }