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
This commit is contained in:
Dave Davenport 2016-11-10 12:17:27 +01:00
parent 545be58e40
commit 0da5737cee

View file

@ -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;