aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbPixmap.cc4
-rw-r--r--src/FbTk/FbPixmap.hh2
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) {
356 m_root_pixmaps[screen_num] = pm; 356 m_root_pixmaps[screen_num] = pm;
357} 357}
358 358
359Pixmap FbPixmap::getRootPixmap(int screen_num) { 359Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) {
360 /* 360 /*
361 if (!FbTk::Transparent::haveRender()) 361 if (!FbTk::Transparent::haveRender())
362 return None; 362 return None;
363 */ 363 */
364 364
365 // check and see if if we have the pixmaps in cache 365 // check and see if if we have the pixmaps in cache
366 if (m_root_pixmaps) 366 if (m_root_pixmaps && !force_update)
367 return m_root_pixmaps[screen_num]; 367 return m_root_pixmaps[screen_num];
368 368
369 // else setup pixmap cache 369 // 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:
68 inline unsigned int height() const { return m_height; } 68 inline unsigned int height() const { return m_height; }
69 inline int depth() const { return m_depth; } 69 inline int depth() const { return m_depth; }
70 70
71 static Pixmap getRootPixmap(int screen_num); 71 static Pixmap getRootPixmap(int screen_num, bool force_update=false);
72 static void setRootPixmap(int screen_num, Pixmap pm); 72 static void setRootPixmap(int screen_num, Pixmap pm);
73 static void rootwinPropertyNotify(int screen_num, Atom atom); 73 static void rootwinPropertyNotify(int screen_num, Atom atom);
74 74