diff options
author | rathnor <rathnor> | 2003-06-26 12:22:43 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-06-26 12:22:43 (GMT) |
commit | 4993e2f36331299aba6a42df2896e49d4c98b111 (patch) | |
tree | e130579b68dbf4244913e676060d0f6fd624140b /src/Toolbar.cc | |
parent | a1eb047c00e96295e482564311db9075d05ce034 (diff) | |
download | fluxbox_pavel-4993e2f36331299aba6a42df2896e49d4c98b111.zip fluxbox_pavel-4993e2f36331299aba6a42df2896e49d4c98b111.tar.bz2 |
speedups for having lots of stuck windows
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index a31fbaf..f97f2d2 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Toolbar.cc,v 1.95 2003/06/25 12:33:28 fluxgen Exp $ | 25 | // $Id: Toolbar.cc,v 1.96 2003/06/26 12:22:42 rathnor Exp $ |
26 | 26 | ||
27 | #include "Toolbar.hh" | 27 | #include "Toolbar.hh" |
28 | 28 | ||
@@ -404,11 +404,11 @@ void Toolbar::delIcon(FluxboxWindow *w) { | |||
404 | FbTk::EventManager::instance()->remove(m_iconbar->delIcon(w)); | 404 | FbTk::EventManager::instance()->remove(m_iconbar->delIcon(w)); |
405 | } | 405 | } |
406 | 406 | ||
407 | void Toolbar::delAllIcons() { | 407 | void Toolbar::delAllIcons(bool ignore_stuck) { |
408 | if (m_iconbar.get() == 0) | 408 | if (m_iconbar.get() == 0) |
409 | return; | 409 | return; |
410 | 410 | ||
411 | IconBar::WindowList *deleted = m_iconbar->delAllIcons(); | 411 | IconBar::WindowList *deleted = m_iconbar->delAllIcons(ignore_stuck); |
412 | IconBar::WindowList::iterator it = deleted->begin(); | 412 | IconBar::WindowList::iterator it = deleted->begin(); |
413 | IconBar::WindowList::iterator it_end = deleted->end(); | 413 | IconBar::WindowList::iterator it_end = deleted->end(); |
414 | for (; it != it_end; ++it) { | 414 | for (; it != it_end; ++it) { |
@@ -421,6 +421,16 @@ bool Toolbar::containsIcon(const FluxboxWindow &win) const { | |||
421 | return (m_iconbar->findIcon(&win) != 0); | 421 | return (m_iconbar->findIcon(&win) != 0); |
422 | } | 422 | } |
423 | 423 | ||
424 | void Toolbar::enableUpdates() { | ||
425 | if (m_iconbar.get() != 0) | ||
426 | m_iconbar->enableUpdates(); | ||
427 | } | ||
428 | |||
429 | void Toolbar::disableUpdates() { | ||
430 | if (m_iconbar.get() != 0) | ||
431 | m_iconbar->disableUpdates(); | ||
432 | } | ||
433 | |||
424 | void Toolbar::enableIconBar() { | 434 | void Toolbar::enableIconBar() { |
425 | if (m_iconbar.get() != 0) | 435 | if (m_iconbar.get() != 0) |
426 | return; // already on | 436 | return; // already on |