aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2005-05-07 12:59:43 (GMT)
committersimonb <simonb>2005-05-07 12:59:43 (GMT)
commit5763339f4c732e53e786c798fb4143d7af4b291f (patch)
tree9fb3d6b6b117d01b176256b5f59530c017eea7bb
parent64eb8cd6a92f4dfc0caf261b65535b86b3e0f542 (diff)
downloadfluxbox_pavel-5763339f4c732e53e786c798fb4143d7af4b291f.zip
fluxbox_pavel-5763339f4c732e53e786c798fb4143d7af4b291f.tar.bz2
remove default gray background on created FbWindows
(not everything should get a bg set)
-rw-r--r--ChangeLog2
-rw-r--r--src/FbTk/FbWindow.cc7
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 805a952..80f2913 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +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: 3*05/05/07:
4 * Remove default "gray" background (Simon)
5 FbTk/FbWindow.cc
4 * Fix titlebar transparency in some (tabbed) cases (Simon) 6 * Fix titlebar transparency in some (tabbed) cases (Simon)
5 FbWinFrame.cc 7 FbWinFrame.cc
6*05/05/06: 8*05/05/06:
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index de6b197..162add6 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -163,9 +163,9 @@ void FbWindow::updateBackground(bool only_if_alpha) {
163 if (only_if_alpha && alpha == 255) 163 if (only_if_alpha && alpha == 255)
164 return; 164 return;
165 165
166 // still use bg buffer pixmap if not transparent 166 // still use bg buffer pixmap if not transparent
167 // cause it does nice caching things, assuming we have a renderer 167 // cause it does nice caching things, assuming we have a renderer
168 if (m_lastbg_pm != ParentRelative && (m_renderer || alpha != 255)) { 168 if (m_lastbg_pm != ParentRelative && (m_renderer || alpha != 255)) {
169 // update source and destination if needed 169 // update source and destination if needed
170 Pixmap root = FbPixmap::getRootPixmap(screenNumber()); 170 Pixmap root = FbPixmap::getRootPixmap(screenNumber());
171 if (alpha != 255 && m_transparent->source() != root) 171 if (alpha != 255 && m_transparent->source() != root)
@@ -566,7 +566,6 @@ void FbWindow::create(Window parent, int x, int y,
566 assert(m_window); 566 assert(m_window);
567 567
568 updateGeometry(); 568 updateGeometry();
569 FbWindow::setBackgroundColor(Color("gray", screenNumber()));
570} 569}
571 570
572 571