Activate borderless mode when needed.