From e85b2f3f5b091bac8101bc90ba04e575b845758e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 12 Feb 2006 08:04:31 +0000 Subject: added force_update option to force an update of the m_root_pixmaps --- src/FbTk/FbPixmap.cc | 4 ++-- src/FbTk/FbPixmap.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc index b8c2856..a80342f 100644 --- a/src/FbTk/FbPixmap.cc +++ b/src/FbTk/FbPixmap.cc @@ -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 diff --git a/src/FbTk/FbPixmap.hh b/src/FbTk/FbPixmap.hh index a974feb..f0f51bb 100644 --- a/src/FbTk/FbPixmap.hh +++ b/src/FbTk/FbPixmap.hh @@ -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); -- cgit v0.11.2