aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2005-05-10 16:29:00 (GMT)
committersimonb <simonb>2005-05-10 16:29:00 (GMT)
commit5fec1906cc4faf83ec2424aa48c2a050b0254d15 (patch)
treecc65550334da8a019887fba4c0000d0422420a03 /src/FbTk/FbPixmap.hh
parentc6c7788405b8f6f5990e4ff9a69123d13b1487f4 (diff)
downloadfluxbox-5fec1906cc4faf83ec2424aa48c2a050b0254d15.zip
fluxbox-5fec1906cc4faf83ec2424aa48c2a050b0254d15.tar.bz2
cache the root pixmap (per screen)
Diffstat (limited to 'src/FbTk/FbPixmap.hh')
-rw-r--r--src/FbTk/FbPixmap.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbTk/FbPixmap.hh b/src/FbTk/FbPixmap.hh
index c8640a2..ca81cf4 100644
--- a/src/FbTk/FbPixmap.hh
+++ b/src/FbTk/FbPixmap.hh
@@ -69,6 +69,7 @@ public:
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);
72 static void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom);
72 73
73 void create(Drawable src, 74 void create(Drawable src,
74 unsigned int width, unsigned int height, 75 unsigned int width, unsigned int height,
@@ -79,6 +80,14 @@ private:
79 Pixmap m_pm; 80 Pixmap m_pm;
80 unsigned int m_width, m_height; 81 unsigned int m_width, m_height;
81 int m_depth; 82 int m_depth;
83
84 /// Functions relating to the maintenance of root window pixmap caching
85 static void checkAtoms();
86 static void setRootPixmap(int screen_num, Pixmap pm);
87 // array of pixmaps: 1 per screen
88 static Pixmap *m_root_pixmaps;
89 static const char *root_prop_ids[];
90 static Atom root_prop_atoms[];
82}; 91};
83 92
84} // end namespace FbTk 93} // end namespace FbTk