added force_update option to force an update of the m_root_pixmaps
This commit is contained in:
parent
6eae743582
commit
e85b2f3f5b
2 changed files with 3 additions and 3 deletions
|
@ -356,14 +356,14 @@ void FbPixmap::setRootPixmap(int screen_num, Pixmap 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())
|
||||
return None;
|
||||
*/
|
||||
|
||||
// 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];
|
||||
|
||||
// else setup pixmap cache
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
inline unsigned int height() const { return m_height; }
|
||||
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 rootwinPropertyNotify(int screen_num, Atom atom);
|
||||
|
||||
|
|
Loading…
Reference in a new issue