From fb3848450e649a05c0bed84a02bc9ab4e563b5d9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 1 Dec 2002 11:45:55 +0000 Subject: window decorations use "unmanaged" widgets now. --- otk/widget.cc | 1 + otk/widget.hh | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'otk') 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; }; -- cgit v1.2.3