aboutsummaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-09-08 16:28:32 (GMT)
committerfluxgen <fluxgen>2003-09-08 16:28:32 (GMT)
commit825273e01f066e9dd7e865b9c80df69960e1e9f5 (patch)
tree677a81696f8126b5dbbce30d84e9bbec86bd75df /src/Container.cc
parenta4e781298c7e884506f0aa6efeea8efb84e3ee00 (diff)
downloadfluxbox-825273e01f066e9dd7e865b9c80df69960e1e9f5.zip
fluxbox-825273e01f066e9dd7e865b9c80df69960e1e9f5.tar.bz2
lock graphic while doing stuff
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Container.cc b/src/Container.cc
index 6c2dfef..5c87379 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.2 2003/08/13 09:39:16 fluxgen Exp $ 23// $Id: Container.cc,v 1.3 2003/09/08 16:28:32 fluxgen Exp $
24 24
25#include "FbTk/Button.hh" 25#include "FbTk/Button.hh"
26#include "Container.hh" 26#include "Container.hh"
@@ -28,7 +28,8 @@
28#include "FbTk/EventManager.hh" 28#include "FbTk/EventManager.hh"
29 29
30Container::Container(const FbTk::FbWindow &parent): 30Container::Container(const FbTk::FbWindow &parent):
31 FbTk::FbWindow(parent, 0, 0, 1, 1, ExposureMask), m_selected(0) { 31 FbTk::FbWindow(parent, 0, 0, 1, 1, ExposureMask), m_selected(0),
32 m_update_lock(false) {
32 33
33 FbTk::EventManager::instance()->add(*this, *this); 34 FbTk::EventManager::instance()->add(*this, *this);
34} 35}
@@ -165,7 +166,7 @@ void Container::exposeEvent(XExposeEvent &event) {
165} 166}
166 167
167void Container::repositionItems() { 168void Container::repositionItems() {
168 if (size() == 0) 169 if (size() == 0 || m_update_lock)
169 return; 170 return;
170 171
171 //!! TODO vertical position 172 //!! TODO vertical position