Screen.showCursor = false; Depends on X coordinate of mouse.

When I hide the cursor using Screen.showCursor = false, the cursor still shows while the mouse is on the right side of the game window. If I move the mouse back and forth it always appears slightly to the right of the middle of the screen and disappears when I move it back to the left side.

No further assignments to Screen.showCursor occur during that.

What is happening and how do I properly hide the cursor?

EDIT: I just realized it only happens while debugging in the Unity editor. If I run through a browser the cursor is hidden properly.

Sounds weird, but as a workaround, you could use lockCursor.