aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-02-12 08:04:31 (GMT)
committerfluxgen <fluxgen>2006-02-12 08:04:31 (GMT)
commite85b2f3f5b091bac8101bc90ba04e575b845758e (patch)
tree49802cfed4d4b2582e819743245ac4226f089a7b /src/FbTk/FbPixmap.cc
parent6eae743582c8fb4d95895f82ed809762b32898c5 (diff)
downloadfluxbox_pavel-e85b2f3f5b091bac8101bc90ba04e575b845758e.zip
fluxbox_pavel-e85b2f3f5b091bac8101bc90ba04e575b845758e.tar.bz2
added force_update option to force an update of the m_root_pixmaps
Diffstat (limited to 'src/FbTk/FbPixmap.cc')
-rw-r--r--src/FbTk/FbPixmap.cc4
1 files changed, 2 insertions, 2 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