win: current tab shouldn't count for missed bell

This commit is contained in:
Boris Faure 2020-01-29 00:09:24 +01:00
parent bee2482fe7
commit d3147b1880
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 3 additions and 3 deletions

View File

@ -3732,7 +3732,7 @@ _tabcount_refresh(Tabs *tabs)
char buf[32], bufmissed[32];
int n = eina_list_count(tabs->tabs);
Evas_Coord w = 0, h = 0;
int missed = 0;
unsigned int missed = 0;
int i;
if (n <= 0)
@ -3756,12 +3756,12 @@ _tabcount_refresh(Tabs *tabs)
if (term->tab_inactive)
evas_object_hide(term->tab_inactive);
if (term->missed_bell)
missed++;
if (tabs->current == tab_item)
{
snprintf(buf, sizeof(buf), "%i/%i", i, n);
}
else if (term->missed_bell)
missed++;
}
if (missed > 0)
snprintf(bufmissed, sizeof(bufmissed), "%i", missed);