From d3147b1880a780dabc809c14bca1f2d4b13596f6 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Wed, 29 Jan 2020 00:09:24 +0100 Subject: [PATCH] win: current tab shouldn't count for missed bell --- src/bin/win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/win.c b/src/bin/win.c index 4e015aca..d9b5fd69 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -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);