diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-11-10 12:17:27 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-11-10 12:17:27 +0100 |
commit | 0da5737ceebcb0eb565c3ed6aad469b3496eb6ee (patch) | |
tree | 7296b31b46d5f6a6b771e09f026ea9643d2476ab | |
parent | 545be58e40562b71dae98a6e7dfccdfe2a8dbf7d (diff) |
If widget is disabled, don't check redraw flag as it wont be cleared.
This reduces a lot of false redraws caused by overlay widget.
Issue: #496
-rw-r--r-- | source/widgets/widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/widgets/widget.c b/source/widgets/widget.c index 729619e6..c77ef1f9 100644 --- a/source/widgets/widget.c +++ b/source/widgets/widget.c @@ -135,7 +135,7 @@ void widget_queue_redraw ( widget *wid ) gboolean widget_need_redraw ( widget *wid ) { - if ( wid ) { + if ( wid && wid->enabled ) { return wid->need_redraw; } return FALSE; |