diff options
Diffstat (limited to 'src/Container.cc')
-rw-r--r-- | src/Container.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Container.cc b/src/Container.cc index e39c582..e41e4b5 100644 --- a/src/Container.cc +++ b/src/Container.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: Container.cc,v 1.10 2003/12/21 16:12:19 rathnor Exp $ | 23 | // $Id: Container.cc,v 1.11 2004/01/13 14:41:32 rathnor Exp $ |
24 | 24 | ||
25 | #include "Container.hh" | 25 | #include "Container.hh" |
26 | 26 | ||
@@ -130,8 +130,10 @@ void Container::removeItem(int index) { | |||
130 | void Container::removeAll() { | 130 | void Container::removeAll() { |
131 | m_selected = 0; | 131 | m_selected = 0; |
132 | m_item_list.clear(); | 132 | m_item_list.clear(); |
133 | if (!m_update_lock) | 133 | if (!m_update_lock) { |
134 | clear(); | 134 | clear(); |
135 | updateTransparent(); | ||
136 | } | ||
135 | 137 | ||
136 | } | 138 | } |
137 | 139 | ||
@@ -158,8 +160,10 @@ void Container::setSelected(int pos) { | |||
158 | for (; pos != 0; --pos, ++it) | 160 | for (; pos != 0; --pos, ++it) |
159 | continue; | 161 | continue; |
160 | m_selected = *it; | 162 | m_selected = *it; |
161 | if (m_selected) | 163 | if (m_selected) { |
162 | m_selected->clear(); | 164 | m_selected->clear(); |
165 | m_selected->updateTransparent(); | ||
166 | } | ||
163 | } | 167 | } |
164 | 168 | ||
165 | } | 169 | } |
@@ -173,8 +177,10 @@ void Container::setAlignment(Container::Alignment a) { | |||
173 | } | 177 | } |
174 | 178 | ||
175 | void Container::exposeEvent(XExposeEvent &event) { | 179 | void Container::exposeEvent(XExposeEvent &event) { |
176 | if (!m_update_lock) | 180 | if (!m_update_lock) { |
177 | clearArea(event.x, event.y, event.width, event.height); | 181 | clearArea(event.x, event.y, event.width, event.height); |
182 | updateTransparent(event.x, event.y, event.width, event.height); | ||
183 | } | ||
178 | } | 184 | } |
179 | 185 | ||
180 | void Container::repositionItems() { | 186 | void Container::repositionItems() { |
@@ -212,6 +218,7 @@ void Container::repositionItems() { | |||
212 | max_width_per_client + extra, | 218 | max_width_per_client + extra, |
213 | height()); | 219 | height()); |
214 | (*it)->clear(); | 220 | (*it)->clear(); |
221 | (*it)->updateTransparent(); | ||
215 | } | 222 | } |
216 | 223 | ||
217 | } | 224 | } |