introduce widget_dirty - not only text list might want the optimization

This commit is contained in:
Cedric Roux
2016-05-02 14:33:07 +02:00
parent ca3a05a592
commit 042f284bc2
4 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ static void *textlist_thread(void *_this)
free(s);
}
if (pthread_mutex_unlock(&this->lock)) abort();
if (dirty) text_list_dirty(this->g, this->w);
if (dirty) widget_dirty(this->g, this->w);
sleepms(1000/this->refresh_rate);
}