diff options
author | fluxgen <fluxgen> | 2006-02-12 08:04:31 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-12 08:04:31 (GMT) |
commit | e85b2f3f5b091bac8101bc90ba04e575b845758e (patch) | |
tree | 49802cfed4d4b2582e819743245ac4226f089a7b /src/FbTk/FbPixmap.cc | |
parent | 6eae743582c8fb4d95895f82ed809762b32898c5 (diff) | |
download | fluxbox-e85b2f3f5b091bac8101bc90ba04e575b845758e.zip fluxbox-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.cc | 4 |
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 | ||
359 | Pixmap FbPixmap::getRootPixmap(int screen_num) { | 359 | Pixmap 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 |