added force_update option to force an update of the m_root_pixmaps

This commit is contained in:
fluxgen 2006-02-12 08:04:31 +00:00
parent 6eae743582
commit e85b2f3f5b
2 changed files with 3 additions and 3 deletions

View file

@ -356,14 +356,14 @@ void FbPixmap::setRootPixmap(int screen_num, Pixmap pm) {
m_root_pixmaps[screen_num] = pm; m_root_pixmaps[screen_num] = pm;
} }
Pixmap FbPixmap::getRootPixmap(int screen_num) { Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) {
/* /*
if (!FbTk::Transparent::haveRender()) if (!FbTk::Transparent::haveRender())
return None; return None;
*/ */
// check and see if if we have the pixmaps in cache // check and see if if we have the pixmaps in cache
if (m_root_pixmaps) if (m_root_pixmaps && !force_update)
return m_root_pixmaps[screen_num]; return m_root_pixmaps[screen_num];
// else setup pixmap cache // else setup pixmap cache

View file

@ -68,7 +68,7 @@ public:
inline unsigned int height() const { return m_height; } inline unsigned int height() const { return m_height; }
inline int depth() const { return m_depth; } inline int depth() const { return m_depth; }
static Pixmap getRootPixmap(int screen_num); static Pixmap getRootPixmap(int screen_num, bool force_update=false);
static void setRootPixmap(int screen_num, Pixmap pm); static void setRootPixmap(int screen_num, Pixmap pm);
static void rootwinPropertyNotify(int screen_num, Atom atom); static void rootwinPropertyNotify(int screen_num, Atom atom);