ui/vnc: optimize setting in vnc_dpy_update()