summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otk/button.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/otk/button.cc b/otk/button.cc
index 410f0083..e93762ec 100644
--- a/otk/button.cc
+++ b/otk/button.cc
@@ -74,7 +74,8 @@ bool OtkButton::expose(const XExposeEvent &e)
bool OtkButton::configure(const XConfigureEvent &e)
{
- _dirty = true;
+ if (!(e.width == width() && e.height == height()))
+ _dirty = true;
return OtkFocusWidget::configure(e);
}