use isActiveWindow for hotkey wakeup