added force_update option to force an update of the m_root_pixmaps
fluxgen fluxgen
2 files changed,
3 insertions(+),
3 deletions(-)
M
src/FbTk/FbPixmap.cc
→
src/FbTk/FbPixmap.cc
@@ -356,14 +356,14 @@
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
M
src/FbTk/FbPixmap.hh
→
src/FbTk/FbPixmap.hh
@@ -68,7 +68,7 @@ inline unsigned int width() const { return m_width; }
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);