remove default gray background on created FbWindows
(not everything should get a bg set)
This commit is contained in:
parent
64eb8cd6a9
commit
5763339f4c
2 changed files with 5 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue