Small tweak so that mouse is always captured in swing mode