window and app activation for windows & osx