If you have problem with mouse cursor in Ubuntu: the cursor is blinking and disappearing, then to fix this you have to enter System->Displays and there turn off the unknown display.
The fix above makes Minecraft game unable to run (it throws NullPointerException). So if you want to play you must turn unknown display on.