better fix for configure
This commit is contained in:
parent
e8b74211e7
commit
5be1363981
1 changed files with 3 additions and 2 deletions
|
@ -414,9 +414,10 @@ bool OtkWidget::configure(const XConfigureEvent &e)
|
||||||
_ignore_config--;
|
_ignore_config--;
|
||||||
} else {
|
} else {
|
||||||
std::cout << "configure\n";
|
std::cout << "configure\n";
|
||||||
if (!(e.width == _rect.width() && e.height == _rect.height()))
|
if (!(e.width == _rect.width() && e.height == _rect.height())) {
|
||||||
_dirty = true;
|
_dirty = true;
|
||||||
_rect.setRect(_rect.x(), _rect.y(), e.width, e.height);
|
_rect.setSize(e.width, e.height);
|
||||||
|
}
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue