summaryrefslogtreecommitdiff
path: root/otk/widget.hh
diff options
context:
space:
mode:
Diffstat (limited to 'otk/widget.hh')
-rw-r--r--otk/widget.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/otk/widget.hh b/otk/widget.hh
index 93121c85..07b6c084 100644
--- a/otk/widget.hh
+++ b/otk/widget.hh
@@ -52,7 +52,7 @@ public:
inline bool visible() const { return _visible; }
virtual void update();
- virtual void refresh() { _dirty = true; render(); }
+ virtual void refresh() { if (_visible) { _dirty = true; render(); } }
virtual void setBevel(int b);
inline int bevel() const { return _bevel; }