Fix determination if close button in live window was clicked to emit "close" instead "click".