Close window on mouse click if right-click disabled