diff options
author | fluxgen <fluxgen> | 2003-09-08 16:28:32 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-08 16:28:32 (GMT) |
commit | 825273e01f066e9dd7e865b9c80df69960e1e9f5 (patch) | |
tree | 677a81696f8126b5dbbce30d84e9bbec86bd75df /src/Container.cc | |
parent | a4e781298c7e884506f0aa6efeea8efb84e3ee00 (diff) | |
download | fluxbox_pavel-825273e01f066e9dd7e865b9c80df69960e1e9f5.zip fluxbox_pavel-825273e01f066e9dd7e865b9c80df69960e1e9f5.tar.bz2 |
lock graphic while doing stuff
Diffstat (limited to 'src/Container.cc')
-rw-r--r-- | src/Container.cc | 7 |
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 | ||
30 | Container::Container(const FbTk::FbWindow &parent): | 30 | Container::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 | ||
167 | void Container::repositionItems() { | 168 | void 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 |