Fixed cursor disappearing when using setCursorVisible in Linux