update example for focused window