diff options
author | simonb <simonb> | 2006-03-20 11:31:24 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-03-20 11:31:24 (GMT) |
commit | f2d3fff4d4db7677814379139dcec3e31fc68047 (patch) | |
tree | 95bd9dc99986104613acc37945895b0812e63801 /src/FbTk/XLayerItem.cc | |
parent | eba0040373179cc6d34f8ee132209f2fa01c2889 (diff) | |
download | fluxbox_lack-f2d3fff4d4db7677814379139dcec3e31fc68047.zip fluxbox_lack-f2d3fff4d4db7677814379139dcec3e31fc68047.tar.bz2 |
external tabs
Diffstat (limited to 'src/FbTk/XLayerItem.cc')
-rw-r--r-- | src/FbTk/XLayerItem.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/FbTk/XLayerItem.cc b/src/FbTk/XLayerItem.cc index eb88aa8..95befe7 100644 --- a/src/FbTk/XLayerItem.cc +++ b/src/FbTk/XLayerItem.cc | |||
@@ -81,9 +81,10 @@ void XLayerItem::moveToLayer(int layernum) { | |||
81 | } | 81 | } |
82 | 82 | ||
83 | void XLayerItem::addWindow(FbWindow &win) { | 83 | void XLayerItem::addWindow(FbWindow &win) { |
84 | // I'd like to think we can trust ourselves that it won't be added twice... | 84 | // I'd like to think we can trust ourselves that it won't be added twice... |
85 | // Otherwise we're always scanning through the list. | 85 | // Otherwise we're always scanning through the list. |
86 | m_windows.push_back(&win); | 86 | m_windows.push_back(&win); |
87 | m_layer->alignItem(*this); | ||
87 | } | 88 | } |
88 | 89 | ||
89 | void XLayerItem::removeWindow(FbWindow &win) { | 90 | void XLayerItem::removeWindow(FbWindow &win) { |
@@ -91,7 +92,8 @@ void XLayerItem::removeWindow(FbWindow &win) { | |||
91 | // Otherwise we're always scanning through the list. | 92 | // Otherwise we're always scanning through the list. |
92 | 93 | ||
93 | XLayerItem::Windows::iterator it = std::find(m_windows.begin(), m_windows.end(), &win); | 94 | XLayerItem::Windows::iterator it = std::find(m_windows.begin(), m_windows.end(), &win); |
94 | m_windows.erase(it); | 95 | if (it != m_windows.end()) |
96 | m_windows.erase(it); | ||
95 | } | 97 | } |
96 | 98 | ||
97 | void XLayerItem::bringToTop(FbWindow &win) { | 99 | void XLayerItem::bringToTop(FbWindow &win) { |