aboutsummaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-10-09 16:48:09 (GMT)
committerrathnor <rathnor>2003-10-09 16:48:09 (GMT)
commit018665d7a3ae8cb642880176d415f57fc178c299 (patch)
tree05a21b11a9f28bd8b456e080be52148de30f5018 /src/Container.cc
parent075dc35b5eeb875e971842e8230338395367e08f (diff)
downloadfluxbox-018665d7a3ae8cb642880176d415f57fc178c299.zip
fluxbox-018665d7a3ae8cb642880176d415f57fc178c299.tar.bz2
drawing optimisations and fixes
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Container.cc b/src/Container.cc
index d1d9fd7..5b985eb 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.4 2003/09/15 20:13:24 fluxgen Exp $ 23// $Id: Container.cc,v 1.5 2003/10/09 16:48:09 rathnor Exp $
24 24
25#include "FbTk/Button.hh" 25#include "FbTk/Button.hh"
26#include "Container.hh" 26#include "Container.hh"
@@ -128,7 +128,8 @@ void Container::removeItem(int index) {
128void Container::removeAll() { 128void Container::removeAll() {
129 m_selected = 0; 129 m_selected = 0;
130 m_item_list.clear(); 130 m_item_list.clear();
131 clear(); 131 if (!m_update_lock)
132 clear();
132 133
133} 134}
134 135
@@ -162,7 +163,8 @@ void Container::setSelected(int pos) {
162} 163}
163 164
164void Container::exposeEvent(XExposeEvent &event) { 165void Container::exposeEvent(XExposeEvent &event) {
165 clearArea(event.x, event.y, event.width, event.height); 166 if (!m_update_lock)
167 clearArea(event.x, event.y, event.width, event.height);
166} 168}
167 169
168void Container::repositionItems() { 170void Container::repositionItems() {