Called when a window is activated or deactivated. The argument is #t when the window is activated, #f when it is deactivated.
If activate is not #f, sets current-active-frame to the given instance.