From 5763339f4c732e53e786c798fb4143d7af4b291f Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 7 May 2005 12:59:43 +0000 Subject: remove default gray background on created FbWindows (not everything should get a bg set) --- ChangeLog | 2 ++ src/FbTk/FbWindow.cc | 7 +++---- 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 @@ (Format: Year/Month/Day) Changes for 0.9.13 *05/05/07: + * Remove default "gray" background (Simon) + FbTk/FbWindow.cc * Fix titlebar transparency in some (tabbed) cases (Simon) FbWinFrame.cc *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) { if (only_if_alpha && alpha == 255) return; - // still use bg buffer pixmap if not transparent - // cause it does nice caching things, assuming we have a renderer - if (m_lastbg_pm != ParentRelative && (m_renderer || alpha != 255)) { + // still use bg buffer pixmap if not transparent + // cause it does nice caching things, assuming we have a renderer + if (m_lastbg_pm != ParentRelative && (m_renderer || alpha != 255)) { // update source and destination if needed Pixmap root = FbPixmap::getRootPixmap(screenNumber()); if (alpha != 255 && m_transparent->source() != root) @@ -566,7 +566,6 @@ void FbWindow::create(Window parent, int x, int y, assert(m_window); updateGeometry(); - FbWindow::setBackgroundColor(Color("gray", screenNumber())); } -- cgit v0.11.2