X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.hh;h=07b6c0845ba1d38039bfa6acab9d6641eb6e0466;hb=739c958ac58154f8b1896113701e1c7f580d4cde;hp=93121c85bd2497de94711e64e3fdd5d7edd837f4;hpb=7a41f7730dfa7e5733720f98f89c5a5906f1e786;p=chaz%2Fopenbox 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; }