diff options
author | mathias <mathias> | 2005-04-27 21:18:41 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-04-27 21:18:41 (GMT) |
commit | f1c5abd17ffd572a7586d396622c2891881e5ca4 (patch) | |
tree | e4f8eaaf1f7f67ff657ff5de9ce989bd38216970 /src/FbTk/FbWindow.hh | |
parent | c0f725806323e370d8eda922e680a0b17db17175 (diff) | |
download | fluxbox-f1c5abd17ffd572a7586d396622c2891881e5ca4.zip fluxbox-f1c5abd17ffd572a7586d396622c2891881e5ca4.tar.bz2 |
i added an attribute to FbWindow to mark windows which are only used as
"carrier" (maybe a temporarly name?) ... carriers dont need background-updates
.. ever.
this leads to a big performance"boost" over the last commits. before we
updated also the windows which are the hosts for the apps (m_window and
m_clientarea in FbWinFrame) -> bad idea.
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r-- | src/FbTk/FbWindow.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index b08df5e..a630f4f 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh | |||
@@ -187,6 +187,9 @@ public: | |||
187 | void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } | 187 | void setRenderer(FbWindowRenderer &renderer) { m_renderer = &renderer; } |
188 | void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height); | 188 | void sendConfigureNotify(int x, int y, unsigned int width, unsigned int height); |
189 | 189 | ||
190 | /// this window is basicly a carrier and does not need background-updates | ||
191 | void setCarrier(bool flag) { m_is_carrier = flag; } | ||
192 | bool isCarrier() const { return m_is_carrier; } | ||
190 | /// forces full background change, recalcing of alpha values if necessary | 193 | /// forces full background change, recalcing of alpha values if necessary |
191 | void updateBackground(bool only_if_alpha); | 194 | void updateBackground(bool only_if_alpha); |
192 | 195 | ||
@@ -221,6 +224,8 @@ private: | |||
221 | Pixmap m_lastbg_pm; | 224 | Pixmap m_lastbg_pm; |
222 | 225 | ||
223 | FbWindowRenderer *m_renderer; | 226 | FbWindowRenderer *m_renderer; |
227 | |||
228 | bool m_is_carrier; | ||
224 | }; | 229 | }; |
225 | 230 | ||
226 | bool operator == (Window win, const FbWindow &fbwin); | 231 | bool operator == (Window win, const FbWindow &fbwin); |