all repos — fluxbox @ e85b2f3f5b091bac8101bc90ba04e575b845758e

custom fork of the fluxbox windowmanager

added force_update option to force an update of the m_root_pixmaps
fluxgen fluxgen
commit

e85b2f3f5b091bac8101bc90ba04e575b845758e

parent

6eae743582c8fb4d95895f82ed809762b32898c5

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/FbTk/FbPixmap.ccsrc/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.hhsrc/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);