Make active_window track the activity instead of window title/class.