When the cursor shape is changed immediately redraw it