Called when a window is activated or deactivated. The argument is #t when the window is activated, #f when it is deactivated.