summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-15 05:07:32 +0000
committerDana Jansens <danakj@orodu.net>2002-11-15 05:07:32 +0000
commit5be1363981349a23637da6a6fc718ae48a7a6667 (patch)
treec44c676cdce83c0823cc70afda04e76822ac2682 /otk/widget.cc
parente8b74211e7dcf08701809f657afa08df55dec218 (diff)
better fix for configure
Diffstat (limited to 'otk/widget.cc')
-rw-r--r--otk/widget.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index 64277e70..96d958cb 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -414,9 +414,10 @@ bool OtkWidget::configure(const XConfigureEvent &e)
_ignore_config--;
} else {
std::cout << "configure\n";
- if (!(e.width == _rect.width() && e.height == _rect.height()))
+ if (!(e.width == _rect.width() && e.height == _rect.height())) {
_dirty = true;
- _rect.setRect(_rect.x(), _rect.y(), e.width, e.height);
+ _rect.setSize(e.width, e.height);
+ }
update();
}
return true;