aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent64eb8cd6a92f4dfc0caf261b65535b86b3e0f542 (diff)
downloadfluxbox-5763339f4c732e53e786c798fb4143d7af4b291f.zip
fluxbox-5763339f4c732e53e786c798fb4143d7af4b291f.tar.bz2
remove default gray background on created FbWindows
(not everything should get a bg set)
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FbWindow.cc7
1 files changed, 3 insertions, 4 deletions
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