SDL's behavior regarding mouse handling does a backflip if input is grabbed AND the cursor is hidden. This could probably be classified as a bug, but bugs with that corner case are to be expected, so you should try to work around it by changing the grab state and cursor visibility as rarely as possible. -:sigma.SB