Fix that the Mouse state change is not applied when the it changes out of the window (leave the window while pressing a mouse button - and going up outside - and going in the window again, the programm will think the mousebutton is still pressed).