mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-30 22:16:44 +02:00
Refactor unread message flagging
This fixes an issue where the interface wasn't able to update when the unread message flag changed. It also cleans up some ugly code
This commit is contained in:
@ -808,15 +808,18 @@ void draw_active_window(Tox *m)
|
||||
a->onDraw(a, m);
|
||||
wrefresh(a->window);
|
||||
}
|
||||
|
||||
#ifdef AUDIO
|
||||
else if (a->is_call && timed_out(a->chatwin->infobox.lastupdate, 1)) {
|
||||
touchwin(a->window);
|
||||
a->onDraw(a, m);
|
||||
wrefresh(a->window);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef GAMES
|
||||
|
||||
if (a->type == WINDOW_TYPE_GAME) {
|
||||
if (!flag_refresh) { // we always want to be continously refreshing game windows
|
||||
touchwin(a->window);
|
||||
|
Reference in New Issue
Block a user