Course editor GUI: Fixed buttons being pressed when window is inactive.