better fix for configure

This commit is contained in:
Dana Jansens 2002-11-15 05:07:32 +00:00
parent e8b74211e7
commit 5be1363981

View file

@ -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;