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 | |
parent | 6eae743582c8fb4d95895f82ed809762b32898c5 (diff) | |
download | fluxbox_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')
-rw-r--r-- | src/FbTk/FbPixmap.cc | 4 | ||||
-rw-r--r-- | 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) { | |||
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 |
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 | ||