Changing the styles was really messing up the mouse cursor. Draw the mouse cursor after zrefresh is done.