never activate the main window after Rmd or PDF compilation