Allow tracking focus change events in watchers

Fixes #2918
This commit is contained in:
Kovid Goyal
2020-08-23 08:51:04 +05:30
parent db64aef666
commit f4ddaacb3c
4 changed files with 10 additions and 0 deletions

View File

@@ -216,6 +216,9 @@ def load_watch_modules(opts: LaunchCLIOptions) -> Optional[Watchers]:
w = m.get('on_resize')
if callable(w):
ans.on_resize.append(w)
w = m.get('on_focus_change')
if callable(w):
ans.on_focus_change.append(w)
return ans