Fix tab activity tracking not working unless there is some other activity in tab bar as well

Fixes #3571
This commit is contained in:
Kovid Goyal
2021-05-05 14:23:27 +05:30
parent 4dcccc553c
commit 5cf228e362
5 changed files with 17 additions and 0 deletions

View File

@@ -612,6 +612,10 @@ class Window:
def has_activity_since_last_focus(self) -> bool:
return self.screen.has_activity_since_last_focus()
def on_activity_since_last_focus(self) -> None:
if self.opts.tab_activity_symbol:
get_boss().on_activity_since_last_focus(self)
def on_bell(self) -> None:
if self.opts.command_on_bell and self.opts.command_on_bell != ['none']:
import shlex