diff options
Diffstat (limited to 'otk')
| -rw-r--r-- | otk/widget.cc | 1 | ||||
| -rw-r--r-- | otk/widget.hh | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/otk/widget.cc b/otk/widget.cc index 61d65fbe..fa729a6f 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -371,6 +371,7 @@ void OtkWidget::adjustVert(void) void OtkWidget::update(void) { if (_dirty) { + if (! _unmanaged) adjust(); render(); XClearWindow(OBDisplay::display, _window); diff --git a/otk/widget.hh b/otk/widget.hh index 6c122a1d..80d269da 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -103,6 +103,8 @@ public: { return _event_dispatcher; } void setEventDispatcher(OtkEventDispatcher *disp); + void unmanaged(void) { _unmanaged = true; } + protected: bool _dirty; @@ -146,6 +148,8 @@ private: bool _fixed_width; bool _fixed_height; + bool _unmanaged; + OtkEventDispatcher *_event_dispatcher; OtkApplication *_application; }; |
