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

@@ -74,6 +74,9 @@ functions for the events you are interested in, for example:
def on_resize(boss, window, data):
# Here data will contain old_geometry and new_geometry
def on_focus_change(boss, window, data):
# Here data kill contain focused
def on_close(boss, window, data):
# called when window is closed, typically when the program running in
# it exits.