Hide context menu when window loses focus