This is a regression from 73b4c33f05. Because we were only tracking wether the left mouse button went up after a contextual menu (which is opened with the right mouse) would only close after the second left mouse up.
73b4c33f05